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

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Nov 12 11:59:45 EST 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-2235?page=comments#action_12387121 ] 
Pete Muir commented on JBSEAM-2235:

Adam, can you post in diff format (we much prefer that :) ) Then I can apply to Seam.

> 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
>             Fix For: 2.0.1.GA
>         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