wood burning stoves*
The moose likes JSF and the fly likes How to get a parent row data when a row is selected from the child table which is in the facet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to get a parent row data when a row is selected from the child table which is in the facet" Watch "How to get a parent row data when a row is selected from the child table which is in the facet" New topic
Author

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

Anil Kolisetty
Greenhorn

Joined: Feb 18, 2011
Posts: 9
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

Joined: Jun 25, 2001
Posts: 16022
    
  20

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

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get a parent row data when a row is selected from the child table which is in the facet