On Tuesday 11 November 2008 03:25:57 tong123123 wrote: > there is a t:datatable for storing the header > table information, when user select a row, > display a new page for the detail information > of this select item, how to do this in JSF? > > I think I need to use t:datatable, with a field > outputLink, so user can select the link in a row (master > table) and then go to the detail table > in another page, but the problem is > how to know which row (or a key) > user has pressed in the t:datatable > in the detail page? > > is there any method to carry the user pressed > value in the outputLink?
Take a look at the MyFaces Wiki: http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters This wiki page describes common patterns to solve the "From List to Detail" problem.. Christian

