I am fairly new to JSF, and I am struggling with identifying which table row I have selected out of the Woodstock Basic Table component in NetBeans 6.1.
I have an EJB that returns a list that I successfully display in my table component. Each row has a Hyperlink component (or in some cases a Button component). When I click the Hyperlink or Button, I need to identify which row this was from in order to correctly display the related data on the next page.
I would think this would be a fairly standard requirement, but I am having problems. Any help would be appreciated.
Bind the table component with an UIData property in the backing bean and use UIData#getRowData() in the action method.
Joined: Apr 08, 2004
I gave this a try and am still having difficulty. When I bind to the UIData property, I end up with a blank screen instead of data. I should note that I am using the Visual JSF Table Component, so maybe this is making a difference?