-
1. Re: Constructing s:link or s:button action dynamically
keithnaas Mar 18, 2008 6:52 PM (in response to brombie.wanch.akewan.com)See FaceletsParamForActionMethod for the same question yesterday.
-
2. Re: Constructing s:link or s:button action dynamically
keithnaas Mar 18, 2008 7:00 PM (in response to brombie.wanch.akewan.com)That was the wrong topic, I'm trying to find the right one....but
in the meantime.The action string
#{fruitHome.createNew(seedHome.instance.id)}
is not evaluated and rendered in the page as a string of the form fruitHome.createNew(10). Instead the raw action expression is checked against raw action expressions defined in navigation rules. So if you have a navigation rule that says
<navigation from-action="#{fruitHome.createNew(seedHome.instance.id)}"/>
then that navigation rule will be executed.
-
3. Re: Constructing s:link or s:button action dynamically
brombie.wanch.akewan.com Mar 18, 2008 9:45 PM (in response to brombie.wanch.akewan.com)Thanks for the pointer. I found some JIRA tickets dated back in 2006 about seam supporting passing object as parameters on action but looks like it's dropped now. I've changed the s:link approach and opted for the more traditional approach through conditional action in the page.xml.
-
4. Re: Constructing s:link or s:button action dynamically
keithnaas Mar 18, 2008 9:55 PM (in response to brombie.wanch.akewan.com)It is still possible to pass objects as parameters to actions. The issue is that the navigation rule has to 100% match the same string action expression in the views.
There is an FAQ entry as well.