DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: e55e6743
    Year: 1995
    Color: Brown
  • Id: 96cc854d
    Year: 1964
    Color: Black
  • Id: 7a146d88
    Year: 1978
    Color: Yellow
  • Id: 62743747
    Year: 1961
    Color: Red
  • Id: e1d1c263
    Year: 1996
    Color: Maroon
  • Id: 6636b929
    Year: 1990
    Color: Silver
  • Id: a3a3c850
    Year: 2008
    Color: Red
  • Id: 705ddaf9
    Year: 1978
    Color: Maroon
  • Id: c8a9791b
    Year: 1977
    Color: Silver
  • Id: fbbf2749
    Year: 1982
    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.RC1 on Mojarra-2.3.2.