DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Scroll Down to Load More Cars
  • Id: 97c28d23
    Year: 1989
    Color: White
  • Id: cde79856
    Year: 1973
    Color: Green
  • Id: 84b70b69
    Year: 1968
    Color: Brown
  • Id: 5a29f768
    Year: 1960
    Color: Silver
  • Id: d47d0cb9
    Year: 1971
    Color: Blue
  • Id: ad56aced
    Year: 1961
    Color: Brown
  • Id: 639d8644
    Year: 1980
    Color: Red
  • Id: 0facbba0
    Year: 2003
    Color: Blue
  • Id: 30bc4345
    Year: 1965
    Color: Green
  • Id: 223a8ab4
    Year: 1980
    Color: Black
<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"/>