DataScroller - Basic

DataScroller displays data with on demand loading using scroll.

Documentation
Scroll Down to Load More Cars
  • Id: 763cfe00
    Year: 1969
    Color: Yellow
  • Id: c2139d7b
    Year: 1991
    Color: Orange
  • Id: 4d350335
    Year: 1975
    Color: Green
  • Id: 178b7430
    Year: 1971
    Color: Maroon
  • Id: 3efdb256
    Year: 1961
    Color: Yellow
  • Id: 8ce91463
    Year: 1986
    Color: Brown
  • Id: 57282173
    Year: 1974
    Color: Black
  • Id: 103ab8ec
    Year: 1998
    Color: Green
  • Id: 6f9ca461
    Year: 1979
    Color: Red
  • Id: fbb48df9
    Year: 1985
    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);
    }
</style>


<h:form> 
    <p:dataScroller value="#{dataScrollerView.cars}" var="car" chunkSize="10">
        <f:facet name="header">
            Scroll Down to Load More Cars
        </f:facet>

        <h:panelGrid columns="2" style="width:100%" columnClasses="logo,detail">
            <p:graphicImage name="demo/images/car/#{car.brand}-big.gif" /> 

            <p:outputPanel>
                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputText value="Id:" />
                    <h:outputText value="#{car.id}" 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"/>
                </h:panelGrid>
            </p:outputPanel>
        </h:panelGrid>
    </p:dataScroller>
</h:form>

FREE THEMES

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

PREMIUM TEMPLATES

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