DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: 7372b4ff
    Year: 1960
    Color: White
  • Id: a459401e
    Year: 1978
    Color: Orange
  • Id: f3254701
    Year: 2006
    Color: Maroon
  • Id: af5c212b
    Year: 1967
    Color: Maroon
  • Id: d0a0a2c3
    Year: 1982
    Color: Green
  • Id: a0bb741f
    Year: 1972
    Color: Red
  • Id: 38950b44
    Year: 1965
    Color: Blue
  • Id: b746e397
    Year: 2001
    Color: White
  • Id: 89e4efb2
    Year: 1979
    Color: Maroon
  • Id: 06a2c44c
    Year: 1966
    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 © 2015
All rights reserved.
Running PrimeFaces-6.0.16 on Mojarra-2.2.8.