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

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Dec 18 10:24:43 EST 2007


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

I applied Adam's patch, no more (which was needed with or without urlrewrite).

Ask on the forum, I've not used urlrewrite outbound rules.

> 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
>         Assigned To: Pete Muir
>             Fix For: 2.0.1.CR1
>
>         Attachments: ViewUrlBuilder.java, ViewUrlBuilder.java.patch
>
>
> 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