JARCH SHOWCASE
JARCH SHOWCASE
Repeat Repeat is an extension to standard repeat component to provide interoperability between JSF implementations and PrimeFaces components.
Id: c8a74a00
Year: 1979
Color: Green

Id: 67efcacc
Year: 1963
Color: Brown

Id: f33c1ca5
Year: 2002
Color: Yellow

Id: e53ad2de
Year: 1999
Color: Black

Id: 007c9720
Year: 1990
Color: Black

Id: 0fa72cb5
Year: 2001
Color: Orange

Id: a0afd8b2
Year: 1993
Color: Silver

Id: 9ceaa713
Year: 1964
Color: Red

Id: 063f499d
Year: 1976
Color: Red

Id: 8273e7cf
Year: 1969
Color: Brown

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.