DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: 57a72c8f
    Year: 1972
    Color: White
  • Id: 1fbb77ae
    Year: 1973
    Color: Green
  • Id: 183512d7
    Year: 2003
    Color: Brown
  • Id: def820a9
    Year: 1986
    Color: Maroon
  • Id: 8b963db7
    Year: 1979
    Color: Yellow
  • Id: 1692ead0
    Year: 1992
    Color: Brown
  • Id: 7f1a13ad
    Year: 1991
    Color: Maroon
  • Id: 0f716e2e
    Year: 2001
    Color: Yellow
  • Id: 37d6d216
    Year: 1983
    Color: Brown
  • Id: 82ec7eea
    Year: 1999
    Color: Green
<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 © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.