DataScroller - Basic DataScroller displays data with on demand loading using scroll.
Scroll Down to Load More Cars
  • Id: 1a608774
    Year: 1998
    Color: Red
  • Id: d3eb058a
    Year: 1991
    Color: Maroon
  • Id: d18489d9
    Year: 2009
    Color: Brown
  • Id: e6e84040
    Year: 1997
    Color: Green
  • Id: b3d52cb1
    Year: 1986
    Color: Maroon
  • Id: 56a35783
    Year: 1966
    Color: Red
  • Id: a770544e
    Year: 1993
    Color: Maroon
  • Id: 3a0a07de
    Year: 1992
    Color: Yellow
  • Id: 08481d41
    Year: 1974
    Color: Green
  • Id: b70f663f
    Year: 1969
    Color: Orange
<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.