This content has been marked as final.
Show 7 replies
-
1. Re: fail to send parameter to a function in xhtml
kruno Jul 6, 2007 4:37 AM (in response to handsomeli)I am not sure but try adding type="submit" to s:link I had similar problems
-
2. Re: fail to send parameter to a function in xhtml
jakec Jul 6, 2007 11:40 AM (in response to handsomeli)If your el is in an action, you can use it directly in the el, like this:
<h:column> <s:button action="#{pooledTask.assign(actorId)}" taskInstance="#{task}" value="Assign"/> </h:column>
-
3. Re: fail to send parameter to a function in xhtml
pmuir Jul 8, 2007 9:56 AM (in response to handsomeli)As JakeC says - the signature of assign is
public String assign(String actorId)
so you won't get it to work with a parameter. N.B. in Seam2 JakeC's suggestion will work ootb -
4. Re: fail to send parameter to a function in xhtml
handsomeli Jul 9, 2007 11:38 PM (in response to handsomeli)Thank you !
Now i success to send a parameter to pooledTask.assign, like this<s:button action="#{pooledTask.assign(peopleSearch.selecteduserid)}" value="Assign" taskInstance="#{task}"/>
Also , i have to set faces-config.xml:
<application>
<view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
</application> -
5. Re: fail to send parameter to a function in xhtml
jakec Jul 10, 2007 12:46 PM (in response to handsomeli)"pete.muir@jboss.org" wrote:
As JakeC says - the signature of assign ispublic String assign(String actorId)
so you won't get it to work with a parameter. N.B. in Seam2 JakeC's suggestion will work ootb
Well, I got it to work in 1.1.5GA. A colleague of mine said it only works with the action attribute. Maybe in 2.0 it will work everywhere, but it definitely works with the action attribute in 1.1.5. -
6. Re: fail to send parameter to a function in xhtml
fmars Jul 10, 2007 4:03 PM (in response to handsomeli)"JakeC" wrote:
A colleague of mine said it only works with the action attribute. Maybe in 2.0 it will work everywhere, but it definitely works with the action attribute in 1.1.5.
Yes. In Seam 2 you can use value bindings too. i discovered it yesterday and i'm really happy about it :)
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/elenhancements.html#d0e17520 -
7. Re: fail to send parameter to a function in xhtml
pmuir Jul 10, 2007 5:52 PM (in response to handsomeli)JakeC - prior to Seam2 you would have had to configure the SeamFaceletViewHandler - now you don't need to :)