You can use the <f:param> Tag or the <t:updateActionListener> tag
 
Here are examples:
 
Regards,
Andy
-----Ursprüngliche Nachricht-----
Von: Jeffrey Porter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 17. Oktober 2005 16:02
An: MyFaces Discussion
Betreff: commandButton & passing a value?

 

What is the correct way to pass a value into a method when a button is pressed.

 

I have the situation where I have a table rendered, via h:dataTable, and I want to add button for each row.

So that when the button is pressed, an action starts, loads some data & redirects to a new page.

 

Do create a hidden textfield that’s contains the value or is there another way?

 

Thanks

Jeff

 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to