tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-922) Allow a null or blank value to be supplied in Link.addParameter(), and render out the parameter name with the missing value
Date Fri, 01 Apr 2011 02:44:05 GMT

    [ https://issues.apache.org/jira/browse/TAP5-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014374#comment-13014374
] 

Hudson commented on TAP5-922:
-----------------------------

Integrated in tapestry-5.2-freestyle #302 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/302/])
    

> Allow a null or blank value to be supplied in Link.addParameter(), and render out the
parameter name with the missing value
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-922
>                 URL: https://issues.apache.org/jira/browse/TAP5-922
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Angelo Chen
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> I have a query string that I need to append to a  Link object, the query string is:
> ?gender=M&country=
>  Link lnk = renderLinkSource.createPageRenderLink("SamplePage");
>  lnk.addParameter("gender", "M");		// this works
>  
> lnk.addParameter("country", null);		
> above line failed with :
>  RequestExceptionHandler Unexpected runtime exception: Parameter value was null or contained
only whitespace.
> A null parameter should be valid in a URL, sometimes it is needed to have Google Analytics
pick up the complete URL even it is null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message