[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2235) Making Seam work with urlrewritefilter's outbound-rules
Sven Mueller (JIRA)
jira-events at lists.jboss.org
Tue Dec 18 08:33:43 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-2235?page=comments#action_12392557 ]
Sven Mueller commented on JBSEAM-2235:
--------------------------------------
@pete
can you give an example how you use the s:link together with outbound-rule? i'm using 2.0.1 CR1 but with no luck. is this fix really available in this version?
cheers,
sven
> 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