DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Scroll Down to Load More Cars
  • Id: cb809b4c
    Year: 1971
    Color: Blue
  • Id: 66b868da
    Year: 1997
    Color: White
  • Id: 2ef46a61
    Year: 1999
    Color: Yellow
  • Id: 020dde61
    Year: 1967
    Color: Black
  • Id: 8c317997
    Year: 1980
    Color: Green
  • Id: 44161193
    Year: 1986
    Color: Yellow
  • Id: 9845aa63
    Year: 1971
    Color: White
  • Id: a796e827
    Year: 1993
    Color: Red
  • Id: 60cf88b7
    Year: 1991
    Color: Maroon
  • Id: 80dcc6dc
    Year: 1983
    Color: White
    <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"/>