[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2235) Making Seam work with urlrewritefilter's outbound-rules

Adam Warski (JIRA) jira-events at lists.jboss.org
Sun Nov 11 13:40:54 EST 2007

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

Adam Warski updated JBSEAM-2235:

    Attachment: ViewUrlBuilder.java

> Making Seam work with urlrewritefilter's outbound-rules 
> --------------------------------------------------------
>                 Key: JBSEAM-2235
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2235
>             Project: JBoss Seam
>          Issue Type: Feature Request
>    Affects Versions: 2.0.0.GA
>            Reporter: Adam Warski
>         Attachments: ViewUrlBuilder.java
> Currently, it is not possible to use urlrewritefilter to handle outbound-rules which depend on query parameters, and thus have full support for "friendly" urls.
> The fix is quite simple; attached you'll find the modified org.jboss.seam.ui.util.ViewUrlBuilder class, which is modified in 2 places:
> - lines 27-29 of the constructor are changed not to call httpServletResponse.encodeURL().
> - the method getEncodedUrl() is overriden, so that is encodes the URL (when the parameters are known).
> With these changed, not only links generated by <s:link> will be translated, but also any redirects from navigation rules in pages.xml will be correct.

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