DataScroller - Loader

A custom component can be used instead to load data on demand instead of the scroll event.

Scroll Down to Load More Cars
  • Id: 4f796147
    Year: 1996
    Color: Orange
  • Id: fad639ea
    Year: 1997
    Color: Red
  • Id: 34f1d09f
    Year: 2007
    Color: Blue
  • Id: 41f0b828
    Year: 1996
    Color: Black
  • Id: 5d42bd89
    Year: 1965
    Color: Green
  • Id: 96452744
    Year: 1990
    Color: Yellow
  • Id: 1e074c5c
    Year: 1972
    Color: Yellow
  • Id: b945735b
    Year: 1997
    Color: Yellow
  • Id: e001d3dc
    Year: 1983
    Color: Silver
  • Id: 8384dee6
    Year: 1962
    Color: Red
<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
        <f:facet name="loader">
            <p:commandButton type="button" value="More" icon="pi pi-chevron-circle-down"/>

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


Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega


Create awesome applications in no time using the premium templates and impress your users.