• Post Reply Bookmark Topic Watch Topic
  • New Topic

[JSF] getRowData return always the first row.  RSS feed

 
Marco De Marco
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:



 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!