[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3535) don't add parameter to Url if value is null

Dan Allen (JIRA) jira-events at lists.jboss.org
Wed Oct 8 19:36:20 EDT 2008


don't add parameter to Url if value is null
-------------------------------------------

                 Key: JBSEAM-3535
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3535
             Project: Seam
          Issue Type: Feature Request
          Components: JSF Controls
    Affects Versions: 2.1.0.CR1
            Reporter: Dan Allen
            Assignee: Dan Allen
             Fix For: 2.1.0.GA


When the value of a parameter declared inside of a Seam UI command control using <f:param> is null, then it should not be appended to the URL. Currently, it is appended with a blank value. The problem is that there is a difference between an empty string (blank value) and not being present. Additionally, by setting the value to null (or leaving off the value attribute), it provides a way to suppress a parameter from being added the URL.

Assuming the link was defined as follows:

<s:link view="/UserEdit.xhtml">
  <f:param name="userId"/>
</s:link>

The URL should be:

/UserEdit.seam

This might override a page parameter for instance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list