I am implementing server side pagination using Richfaces, but the implementation using PaginatingDataModel requires bean to be saved in SessionScope. Using JSF 2.0, RichFaces 4.4. Refer URL below:
http://katzmaier.blogspot.in/2010/03/richfaces-server-side-pagination.html
https://community.jboss.org/thread/204250
Is there any alternate implementation to implement server side pagination using request scope?
By server side pagination, I mean data for each page to be fetched by executing queries instead of retrieving all records at once.
As answered in comment, you could use the
ViewScopedinstead ofSessionScoped. This is a new scope available since JSF 2.0, perfect to keep data server side for a shorter time.Here is a link of a blog talking about new features in JSF 2.0 What’s new in JSF 2.0