DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Scroll Down to Load More Cars
  • Id: 2fac94d6
    Year: 2002
    Color: Orange
  • Id: 7ac3ef72
    Year: 1964
    Color: Yellow
  • Id: 46bfbbf7
    Year: 1983
    Color: Green
  • Id: fc28e3e9
    Year: 1999
    Color: Yellow
  • Id: 97df3463
    Year: 1972
    Color: Yellow
  • Id: 36e62e2b
    Year: 2006
    Color: Red
  • Id: f8b10195
    Year: 2004
    Color: Blue
  • Id: 8c0e9049
    Year: 1986
    Color: White
  • Id: 4b275aec
    Year: 1967
    Color: Silver
  • Id: e7b5ae44
    Year: 2005
    Color: Red
    <p:dataScroller value="#{}" var="car" chunkSize="10">
        <f:facet name="header">
            Scroll Down to Load More Cars

        <h:panelGrid columns="2" style="width:100%" columnClasses="logo,detail">
            <p:graphicImage name="demo/images/car/#{car.brand}-big.gif" /> 

                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputText value="Id:" />
                    <h:outputText value="#{}" 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"/>