DataScroller - Inline

In inline mode, data is loaded on scroll event of the component itself.

Scroll Down to Load More Cars
  • Id: 20b4dc07
    Year: 1997
    Color: Red
  • Id: 37ae855f
    Year: 1971
    Color: Green
  • Id: 1a903f5b
    Year: 2004
    Color: Red
  • Id: bf2c2698
    Year: 1998
    Color: Black
  • Id: 15eebc5e
    Year: 1983
    Color: Green
  • Id: 1998f531
    Year: 2003
    Color: Silver
  • Id: d15281c6
    Year: 1978
    Color: Brown
  • Id: d636b177
    Year: 1982
    Color: Orange
  • Id: 57f3f397
    Year: 1997
    Color: Maroon
  • Id: d2548510
    Year: 1985
    Color: Yellow
    <p:dataScroller value="#{}" var="car" chunkSize="10" mode="inline" scrollHeight="500">
        <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"/>