Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

paging methods (htmlDataTable)  RSS feed

Joe Shannow
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have some methods for paging h:dataTable (htmlDataTable binding) and several dataTables with different properties (PERSON - id, name, adress or PRODUCT - id, value, quantity, etc.).
The pagging methods are still the same, for example:
(same code in myPerson and myProduct class)

called from jsf:

but I'm not able to call them from one class.
When I use it from one dataTable (for example person) it works, but after changing a xhtml page (product), it doesn't.
It's looking for PERSON properties but I'm try to show PRODUCTS.

So I have to have all paging methods twice........
How can I use it from one class?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!