This content has been marked as final.
Show 2 replies
-
1. Re: s:link component and JSF-like outcomes
piotr.sobczyk Aug 8, 2009 2:27 PM (in response to piotr.sobczyk)Ok, I was wrong, passing method binding expression to action parameter of s:link doesn't change anything. Outcome of invoked action method is matched in navigation rules and proper navigation occurs but page parameters are still being dropped. Sure I can use h:commandLink instead and then page parameters work just fine, but then I loose ability to open link in new tab or create bookmarks :(.
So my final question is: is there a way to transmit page parameters from s:link tag using it's
action
attribute rather thanview
? -
2. Re: s:link component and JSF-like outcomes
wilczarz.wilczarz.gmail.com Aug 26, 2009 3:14 PM (in response to piotr.sobczyk)The GET parameter you attach to s:link by f:param nedds to be declared as a page param to be honored when using jsf navigation rules. Consider the following link:
<s:link action="goSomewhere" value="Link"> <f:param name="foo" value="bar" /> </s:link>
To get it work you need the following in pages.xml:
<page view-id="/pageOne.xhtml" > <param name="foo"/> <navigation from-action="goSomewhere"> <rule> <redirect view-id="/pageTwo.xhtml" /> </rule> </navigation> </page>