DataScroller - Loader A custom component can be used instead to load data on demand instead of the scroll event.
Scroll Down to Load More Cars
  • Id: 98b214a1
    Year: 1981
    Color: Silver
  • Id: bd5fd150
    Year: 2009
    Color: Black
  • Id: 959ac04b
    Year: 1987
    Color: Orange
  • Id: a78233ae
    Year: 1990
    Color: Brown
  • Id: 09ab3d86
    Year: 1968
    Color: Maroon
  • Id: 72ed8a83
    Year: 1982
    Color: Red
  • Id: 8f542f6a
    Year: 2003
    Color: Silver
  • Id: 3f0d2591
    Year: 1983
    Color: Red
  • Id: 20f1bfd5
    Year: 1978
    Color: Brown
  • Id: 4e368a3a
    Year: 1976
    Color: White
    <p:dataScroller value="#{}" var="car" chunkSize="10">
        <f:facet name="header">
            Scroll Down to Load More Cars

        <f:facet name="loader">
            <p:commandButton type="button" value="More" icon="ui-icon-circle-triangle-s"/>

        <h:panelGrid columns="2" style="width:100%" columnClasses="logo,detail">
            <p:graphicImage name="demo/images/car/#{car.brand}-big.gif" /> 

                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputText value="Id:" />
                    <h:outputText value="#{}" style="font-weight: bold"/>

                    <h:outputText value="Year:" />
                    <h:outputText value="#{car.year}" style="font-weight: bold"/>

                    <h:outputText value="Color:" />
                    <h:outputText value="#{car.color}" style="font-weight: bold"/>
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2 on Mojarra-2.3.2.