[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3003) maintain insertion order of parameters in UrlBuilder

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri May 16 11:06:22 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-3003?page=all ]

Dan Allen updated JBSEAM-3003:
------------------------------

    Attachment: JBSEAM-3003-branch20.txt

> maintain insertion order of parameters in UrlBuilder
> ----------------------------------------------------
>
>                 Key: JBSEAM-3003
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-3003
>             Project: Seam
>          Issue Type: Feature Request
>          Components: JSF Controls
>    Affects Versions: 2.1.0.A1
>            Reporter: Dan Allen
>         Assigned To: Dan Allen
>            Priority: Minor
>             Fix For: 2.1.0.BETA1
>
>         Attachments: JBSEAM-3003-branch20.txt, JBSEAM-3003-trunk.txt
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> Right now it is difficult to create UrlRewrite rules because the order of the parameters jumps around. This happens because the parameters are appended to a plain HashMap (for s:link, s:button, etc), giving no guarantee to their order. My feeling is that parameters should maintain their insertion order, which can be accomplished using a LinkedHashMap.
> At first, I thought about having the parameters sorted alphabetically. However, that takes control away from the developer to order the links how they see fit. As long as we can document the order in which Seam appends parameters, then the developer can predict the order the parameters will appear in the URL.

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

        



More information about the seam-issues mailing list