Actions cannot take arguments.  Try creating a property called "argu" on the 
backing bean.  Inside your commandLink, you can then do this

<t:updateActionListener property="#{DebtorController.argu}" value="foo" />

This says "assign 'foo' to the argu property just before the action is called.  
In the action, you will have access to the argu String internally.

Dennis Byrne

>-----Original Message-----
>From: Anthony Hong [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 8, 2006 10:04 PM
>To: 'MyFaces Discussion'
>Subject: How to pass argument in a JSF action
>
>I want to have following function
>In page a have command button
><h:commandButton id="btCreate" value="#{tagVar.CREATE}"
>action="#{DebtorController.createDebtor}"/>
>Can I pass some argument to this backing bean functon?
>
>Say the orignial is
>public string createDebtor()
>
>I want it to be
>public string createDebtor(String argu)
>
>Can it be?
>
>
>--
>
>Anthony Hong
>


Reply via email to