Repeat

Repeat is an extension to standard repeat component to provide interoperability between JSF implementations and PrimeFaces components.

Documentation
Id: b9f8d260
Year: 1974
Color: Blue

Id: d5f5e8a9
Year: 2004
Color: Red

Id: 746b8e28
Year: 1980
Color: Red

Id: 49af5a15
Year: 1995
Color: Yellow

Id: 3514ef00
Year: 1971
Color: Red

Id: 0115a466
Year: 1982
Color: Green

Id: cb9e50d3
Year: 1975
Color: Brown

Id: ce19b982
Year: 2009
Color: Brown

Id: 8341adca
Year: 2004
Color: Black

Id: 52f8b193
Year: 1981
Color: Brown

Car Info
<style type="text/css">
    .logo {
        width: 5%
    }

    .detail {
        width: 95%;
        padding-left: 25px;
    }

    .detail td {
        font-size: 24px;
    }
</style>


<h:form id="form">
    <p:repeat value="#{dataListView.cars1}" var="car">
        <h:panelGrid columns="2" style="width:100%" columnClasses="logo,detail">
            <p:commandLink update=":form:carDetail" oncomplete="PF('carDialog').show()">
                <f:setPropertyActionListener value="#{car}" target="#{dataListView.selectedCar}" />
                <p:graphicImage name="demo/images/car/#{car.brand}-big.gif" /> 
            </p:commandLink>

            <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>
        <hr />
    </p:repeat>

    <p:dialog header="Car Info" widgetVar="carDialog" modal="true" showEffect="blind" hideEffect="explode" resizable="false">
        <p:outputPanel id="carDetail" style="text-align:center;">
            <p:panelGrid  columns="2" rendered="#{not empty dataListView.selectedCar}" columnClasses="label,value">
                <f:facet name="header">
                    <p:graphicImage name="demo/images/car/#{dataListView.selectedCar.brand}-big.gif"/> 
                </f:facet>

                <h:outputText value="Id:" />
                <h:outputText value="#{dataListView.selectedCar.id}" />

                <h:outputText value="Year" />
                <h:outputText value="#{dataListView.selectedCar.year}" />

                <h:outputText value="Color:" />
                <h:outputText value="#{dataListView.selectedCar.color}" style="color:#{dataListView.selectedCar.color}"/>

                <h:outputText value="Price" />
                <h:outputText value="\$#{dataListView.selectedCar.price}" />
            </p:panelGrid>
        </p:outputPanel>
    </p:dialog>
</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.