No problem. If you decide you want to do this client-side (javascript) instead of server-side, take a look at this posting:
Message-ID: <[EMAIL PROTECTED]> Date: Wed, 14 Mar 2007 14:24:45 -0400 From: "Mike Kienenberger" <[EMAIL PROTECTED]> To: "MyFaces User mailing list" <[email protected]> Subject: Experiences with t:dataTable row clicking, selecting, and highlighting On 3/22/07, Julien Martin <[EMAIL PROTECTED]> wrote:
Thank you Mike!!! You saved my life. Julien. 2007/3/22, Mike Kienenberger <[EMAIL PROTECTED]>: > If you update your model values, and then call > > firstNameComponent.setSubmittedValue(null); > firstNameComponent.setLocalValueSet(false); > > lastNameComponent.setSubmittedValue(null); > lastNameComponent.setLocalValueSet (false); > > ageComponent.setSubmittedValue(null); > ageComponent.setLocalValueSet(false); > > then your loaded values should be updated when the page is rendered. > > > On 3/22/07, Julien Martin < [EMAIL PROTECTED]> wrote: > > Hello, > > Say I have the following form in a web page: > > > > FirstName: --------- > > LastName : --------- > > Age : ---(selectOneMenu) > > > > Below comes data from a jsf h:datatable component as follows: > > > > FirstName LastName Age > > Bob Smith 42 LoadButton > > John Fritz 26 LoadButton > > > > I want for the user to load any line he/she wants into the form. > > > > The problem I have is that the loadAction attached to the LoadButton is > > invoked during invokeApplication phase and therefore too late. I use > > component binding. I only have jsf 1.1 available and therefore cannot alter > > the lifecycle. Note that the "Age" field is populated from a database. What > > strategy can I use? > > > > > > Julien. >

