-
1. Re: RichFaces : Client Side Pagination Not Working
bleathem Oct 9, 2013 2:03 PM (in response to sategroup)To be clear, does your pagination work with @SessionScoped, but you just prefer not to use @SessionScoped?
Have you compared your impl to what's available on the RichFaces showcase?
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataScroller&skin=blueSky
Hemant Gupta wrote:
Since, I am working on this for my client, I can't disclose the code.
Commercial support for RichFacesis available for those who are not able to work within the confines of the OSS community:
http://www.redhat.com/products/jbossenterprisemiddleware/web-framework-kit/
-
2. Re: RichFaces : Client Side Pagination Not Working
sategroup Oct 17, 2013 6:04 AM (in response to bleathem)Hey Brian,
Its working fine with SessionScope but I don't prefer to use it as using SessionScope has its own implications, when all I want is show some data on client side & enable pagination on client side without hitting the backend again and again. I had already checked their showcase and in their example they are using SessionScope.
If I had to use SessionScope only, then what's the point of providing a ViewScope?
As for commercial support, that is not an option for me.
-
3. Re: RichFaces : Client Side Pagination Not Working
bleathem Oct 17, 2013 4:36 PM (in response to sategroup)ViewScoped should work.
-
4. Re: RichFaces : Client Side Pagination Not Working
sategroup Oct 21, 2013 3:16 AM (in response to sategroup)Hi,
Finally, I was able to discover the problem. Thanks to StackOverflow.com. Although, I was using the viewScope, my method was returning a String rather than returning null or void. After I changed the method definition to void, the code started working properly.
Seems like void or null forces JSF to re-instantiate the object with old data...
Thanks Brian for reading and replying to my problem.Hemant