DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: 00071e3b
    Year: 1983
    Color: Red
  • Id: 6d125303
    Year: 1965
    Color: Orange
  • Id: e9e118e6
    Year: 1995
    Color: Orange
  • Id: b82321aa
    Year: 1997
    Color: Silver
  • Id: d9aba037
    Year: 1982
    Color: Green
  • Id: 7a06f985
    Year: 2007
    Color: Yellow
  • Id: 57339328
    Year: 1993
    Color: Blue
  • Id: 4f9433ea
    Year: 1960
    Color: Black
  • Id: c11b57b5
    Year: 1974
    Color: Red
  • Id: 0aaca1ec
    Year: 1994
    Color: Brown
<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.