Building a page with infinite scroll in PrimeFaces using Waypoints jQuery plugin
Infinite scroll is a page feature where in data is automatically loaded as you scroll down to the bottom of a page. Facebook uses this feature in their "news feeds".
This demonstration uses PrimeFaces with a jQuery plugin called WayPoints. Plugin download and documentation can be found here http://imakewebthings.com/jquery- waypoints/. We employed PrimeFaces' <p:remoteCommand /> and <p:outputPanel /> along with Waypoints, the main component of the process. It is Waypoints that initiates the update process that call <p:remoteCommand />, and in turn into the backing code, as soon as a Waypoint element appears at the bottom of the page/viewport.