Susan Cline wrote:
Hi Simon,
I apologize for the slow response, I was on vacation all last week and just checked my email yesterday. I really appreciate your help, and I've got some more questions if you wouldn't mind taking a look. My responses are below in bold type.

No problem.

Actually, while writing up a response I thought it worth having a look at the examples provided with MyFaces to see if there was a pre-existing example of this.

There is. See "masterDetail.jsp" in the examples directory of the myfaces source.

And the solution there is (in many cases) easier than using either a DataModel or a binding:

 <t:commandLink action="go_country" immediate="true" >
   <h:outputText value="#{country.name}" />
     <t:updateActionListener property="#{countryForm.id}"
       value="#{country.id}" />
 </t:commandLink>

For your app, using t:updateActionListener is probably the best solution. It writes the current row object (or a field of it in this example) into the backing bean associated with the details page.

Regards,

Simon

Reply via email to