I prefer to handle all my pagination on the server with Hibernate, but I also 
want to use the <rich:datascroller> component. My Seam component "knows" the 
following information:

1) The total number of page results
2) The current page number of results
3) The desired number of results per page
4) The search results for the current page

For example, let's say I search for something that returns 43 results, and the 
user wants 10 results per page. The component knows that there are 5 total 
pages, that there are 10 results per page, and which results go with which page 
(page 0 has results 0-9 and page 4 has results 40-42 for example). The 
component also serves out the results one page at a time.

All the rich:datascroller needs to know is that it is getting one page of five, 
but it can retrieve information about the entire result set (like total pages) 
from the Seam component. 

How do I use rich:datascroller with the information I have in my Seam component 
to facilitate pagination?  Is this even possible without essentially writing my 
own component?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122798#4122798

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122798
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to