DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Scroll Down to Load More Cars
  • Id: a80e3ab6
    Year: 2008
    Color: Black
  • Id: 933e16ab
    Year: 1983
    Color: Maroon
  • Id: 779ac75e
    Year: 1973
    Color: White
  • Id: b0504c7b
    Year: 1994
    Color: Maroon
  • Id: f90d9540
    Year: 1979
    Color: Brown
  • Id: 5f052eb6
    Year: 1964
    Color: Red
  • Id: 326b5d75
    Year: 1998
    Color: Silver
  • Id: be72519e
    Year: 1966
    Color: Silver
  • Id: 9e8dcdaf
    Year: 1993
    Color: Blue
  • Id: b15b0b39
    Year: 1984
    Color: Green
<style type="text/css">
    .logo {
        width: 5%
    .detail {
        width: 95%;
        padding-left: 25px;
    .detail td {
        font-size: 24px;
    .ui-datascroller .ui-datascroller-item {
        border-bottom: 1px solid #A8A8A8;
        padding: 25px 10px;
        /* with the exported variables from Nova and Luna Themes*/
        border-bottom-color: var(--input-border-color, #A8A8A8);

    <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"/>