I have a search results page in which I display the results in a dataTable. 
When user selects a particular row to see the details, the backing bean gets 
the clicked row details by calling getRowData on the dataTable's DataModel 
object. Use that row object to get the details and render the detail page.

HTH.

-----Original Message-----
From: Daniel Murley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 9:24 AM
To: Myfaces users
Subject: Displaying and linking search results


Hi all,

I'm currently building on JBoss and MyFaces.  I'm having a problem being
able to link search results to another page.

Effectively what happens at the moment is the user enters some criteria,
hits search, the backing bean in a request scope, grabs the information and
makes it available to the page.

However at this point i'm a little stumped, as I don't know how to be able
to link these results to other pages.

My initial thinking was along the lines of :

<h:commandLink value="#{search.name}" action="#{search.showDetails}">
  <f:param name="searchID" value="#{search.id}" />
</h:commandLink>

However this doesn't seem to be working.  Am I on the right track here, or
is there a better way to do this?

Thanks,

Daniel

Reply via email to