• Post Reply Bookmark Topic Watch Topic
  • New Topic

paging methods (htmlDataTable)

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

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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!