-
1. Re: How to do Real Pagination with rich:datascroller?
vfarina Mar 17, 2010 11:10 AM (in response to babazs)Hello,
The pagination can be done on different ways, it depends on your needs and the data overloading.
1) Use the default functionality offered by rich:datascroller.
2) Extend, for instance, the SerializableDataModel to have control on the pagination.
You can find nice examples with both cases on the rich faces demo page.
If you want to manage the pagination yourself and have control on the data loaded, I suggest going for the option 2.
Cheers
-
2. Re: How to do Real Pagination with rich:datascroller?
babazs Mar 17, 2010 11:19 AM (in response to vfarina)thank you!
Where can I exactly find sample for the 2nd version on the richfaces demo page?
-
3. Re: How to do Real Pagination with rich:datascroller?
vfarina Mar 17, 2010 11:24 AM (in response to babazs)Have a look on the AuctionDataModel.java Source on:
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=dataModel&cid=10861311
I started with those examples and it was very helpful!
Cheers
-
4. Re: How to do Real Pagination with rich:datascroller?
ilya_shaikovsky Mar 17, 2010 11:48 AM (in response to babazs)also you will find there second example on using modifiable model. It shows addition of the filtering and sorting functionality to your model. -
5. Re: How to do Real Pagination with rich:datascroller?
babazs Mar 24, 2010 4:38 AM (in response to ilya_shaikovsky)thanks,It works.
But, I did not make it really reusable with Seam (without entityquery)
-
6. Re: How to do Real Pagination with rich:datascroller?
nbelaevski Mar 24, 2010 7:31 AM (in response to babazs)Hi,
You can use any 3rd-party framework to build HQL statements dynamically.
-
7. Re: How to do Real Pagination with rich:datascroller?
babazs Mar 24, 2010 8:01 AM (in response to nbelaevski)Can you attach an example?
thx.
-
8. Re: How to do Real Pagination with rich:datascroller?
nbelaevski Mar 24, 2010 8:18 AM (in response to babazs)Sorry, but I don't have example right now.