This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes [JSF]  getRowData return always the first row. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "[JSF]  getRowData return always the first row." Watch "[JSF]  getRowData return always the first row." New topic
Author

[JSF] getRowData return always the first row.

Marco De Marco
Greenhorn

Joined: May 24, 2010
Posts: 1
Hi,
I'm using the same backing beans in 2 JSF pages to populate 2 different datatable, but in the first one the method getRowData return the correct row, instead in the second one getRowData return always the first row.
The tables are populated by 2 different methods, and there are 2 datamodel.

Any help will be appreciated!

Marco

I've found the problem:
In the method getDataModel() I've always fetch the data from the database: the correct way is:



 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: [JSF] getRowData return always the first row.
 
Similar Threads
getting object instance inside nested h:dataTable
Use of DataModle in JSF
Datamodel always returning first row
selectBooleanCheckbox inside dataTableEx
Passing a Parameter via Ajax