• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get a parent row data when a row is selected from the child table which is in the facet

 
Anil Kolisetty
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i have a table in the detailStamp facet of a table, i provided selection option for the table which is in the facet, i need to retrieve the parent row data to the backing bean

<tr:table id ="outerTable "var="row" value=List>
<facet name="detailStamp">
<tr:table id="innerTable" var="innerRow" value="row.innerList" rowSelection="single">
<tr:column/>
<tr:column/>
</tr:table>
</facet>
</tr:table>

The user don't have the ability to select the outerTable rows, user only has the ability to select a row from the detailStamp table but i need to retrieve the innertable row data as well as outertable row data.

i am getting rowdata of the innerTable using binding attribute.
How can i get the outerTable row data of the selected facet(selected innerTable)?


Thanks in Advance......
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a major annoyance that JSF doesn't support nested dataTables properly. Until it does:

http://www.coderanch.com/t/568331/JSF/java/Dynamic-datatable-jsf#2611049
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic