DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: 03b1ec15
    Year: 1981
    Color: Maroon
  • Id: 2f06e001
    Year: 1985
    Color: Maroon
  • Id: a5babc65
    Year: 1974
    Color: Blue
  • Id: 1712ecce
    Year: 1961
    Color: Yellow
  • Id: a2909bc6
    Year: 1967
    Color: Brown
  • Id: c39a95c3
    Year: 2009
    Color: Yellow
  • Id: 7a5cc210
    Year: 1988
    Color: Orange
  • Id: 280397c1
    Year: 1977
    Color: Silver
  • Id: 0a2fa048
    Year: 1968
    Color: Silver
  • Id: 84599891
    Year: 2004
    Color: Yellow
<h:form> 
    <p:dataScroller value="#{dataScrollerView.cars}" var="car" chunkSize="10">
        <f:facet name="header">
            Scroll Down to Load More Cars
        </f:facet>

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

            <p:outputPanel>
                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputText value="Id:" />
                    <h:outputText value="#{car.id}" 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"/>
                </h:panelGrid>
            </p:outputPanel>
        </h:panelGrid>
    </p:dataScroller>
</h:form>
                
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.