JARCH SHOWCASE
JARCH SHOWCASE
Repeat Repeat is an extension to standard repeat component to provide interoperability between JSF implementations and PrimeFaces components.
Id: 6f51f5f7
Year: 2007
Color: Black

Id: 3c6f0a99
Year: 1980
Color: Brown

Id: 8092749b
Year: 1979
Color: Green

Id: bb697c70
Year: 2006
Color: Red

Id: b5261c6c
Year: 1987
Color: Green

Id: 56d7b1c0
Year: 1976
Color: White

Id: 0b1d9c34
Year: 2000
Color: Maroon

Id: 97b81615
Year: 2002
Color: Brown

Id: a0548669
Year: 1995
Color: Red

Id: cba95cdf
Year: 1969
Color: Red

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

            <a: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>
            </a:outputPanel>
        </h:panelGrid>
        <hr />
    </a:repeat>

    <a:dialog header="Car Info" widgetVar="carDialog" modal="true" showEffect="blind" hideEffect="explode" resizable="false">
        <a:outputPanel id="carDetail" style="text-align:center;">
            <a:panelGrid  columns="2" rendered="#{not empty dataListView.selectedCar}" columnClasses="label,value">
                <f:facet name="header">
                    <a: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}" />
            </a:panelGrid>
        </a:outputPanel>
    </a:dialog>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.