Hi Gerald, Thanks a lot for a quick response. It worked for me.
Thanks again. Rgds, Madhav > -----Original Message----- > From: Gerald Müllan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 20, 2006 8:51 PM > To: MyFaces Discussion > Subject: Re: passing values from one request to another > > No, there is a very nice solution in tomahawk to solve exactly this > usecase. > > Have a look at t:updateActionListener. > > Usage: > > iterate over persons, for each person do > ... > <h:commandButton value="xyz" action="#{bean.deletePerson}"> > <t:updateActionListener > property="#{bean.id}" value="#{person.id}"/> > </h:commandButton> > > The listener sets the id of person to the attribute of the bean. It > can then easily retrieved in the action/actionListener method. > > cheers, > > Gerald > > On 12/20/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > > Hi David, > > > > Thanks for the reply. > > Problem with <f:param> is that it can only be passed from inside a > command link. > > I do not have a command link but a command button. I do not want to use > a command link and style it as a button. > > > > > > Rgds, > > Madhav > > > -----Original Message----- > > > From: David Delbecq [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, December 20, 2006 8:31 PM > > > To: MyFaces Discussion > > > Subject: Re: passing values from one request to another > > > > > > Sometinh in second jsp, in the form of > > > <f:param name="bingo" value="#{params.bingo}"> ? (i think it's param, > > > check the EL predefined variable names for the one representing > > > parameters) > > > En l'instant précis du 12/20/06 15:38, Madhav Bhargava s'exprimait > dans > > > toute sa noblesse: > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I am passing a value to the action method using <f:param > name="bingo" > > > > value="tringo">. > > > > > > > > The action then forwards the control to another JSP. This JSP has > > > > another set command buttons which call another action method. How do > I > > > > pass the value stored initially in "bingo" to the action methods > > > > called from the last JSP in sequence? > > > > > > > > > > > > > > > > One solution is to programmatically add a hidden input component or > an > > > > attribute component to the view root. Is there any other alternative > > > > that I can use? If yes then how? > > > > > > > > **************** CAUTION - Disclaimer ***************** > > > > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION > intended > > > > solely for the use of the addressee(s). If you are not the intended > > > > recipient, please notify the sender by e-mail and delete the > original > > > > message. Further, you are not to copy, disclose, or distribute this > > > > e-mail or its contents to any other person and any such actions are > > > > unlawful. This e-mail may contain viruses. Infosys has taken every > > > > reasonable precaution to minimize this risk, but is not liable for > any > > > > damage you may sustain as a result of any virus in this e-mail. You > > > > should carry out your own virus checks before opening the e-mail or > > > > attachment. Infosys reserves the right to monitor and review the > > > > content of all messages sent to or from this e-mail address. > Messages > > > > sent to or from this e-mail address may be stored on the Infosys > > > > e-mail system. > > > > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > > > > > > > > > > > -- > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces

