DataScroller - Inline

In inline mode, data is loaded on scroll event of the component itself.

Documentation
Scroll Down to Load More Cars
  • Id: 3c306afd
    Year: 1973
    Color: Blue
  • Id: 7a16c12a
    Year: 1991
    Color: Red
  • Id: a4a86ba7
    Year: 2003
    Color: Yellow
  • Id: b46c9649
    Year: 1968
    Color: Orange
  • Id: 5871d455
    Year: 1986
    Color: Orange
  • Id: dd689e28
    Year: 1999
    Color: Red
  • Id: f20f9205
    Year: 1978
    Color: Red
  • Id: 82091bba
    Year: 1978
    Color: White
  • Id: 43808c47
    Year: 1999
    Color: Blue
  • Id: 361516be
    Year: 1983
    Color: Yellow
<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" mode="inline" scrollHeight="500">
        <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.