Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • 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

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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic