DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Scroll Down to Load More Cars
  • Id: ff20d762
    Year: 1996
    Color: Brown
  • Id: 6256ef0a
    Year: 1970
    Color: Green
  • Id: 9b7f4a12
    Year: 2009
    Color: Silver
  • Id: 9f99cfc7
    Year: 1985
    Color: Yellow
  • Id: 85cdbcfa
    Year: 1961
    Color: Orange
  • Id: 2ea031e7
    Year: 2002
    Color: Black
  • Id: 583cb262
    Year: 1987
    Color: Green
  • Id: 1d3cc97a
    Year: 1961
    Color: Orange
  • Id: a4fee597
    Year: 1974
    Color: Silver
  • Id: 4b58e785
    Year: 1993
    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"/>