JARCH SHOWCASE
JARCH SHOWCASE
Repeat Repeat is an extension to standard repeat component to provide interoperability between JSF implementations and PrimeFaces components.
Id: 2f1e8bd8
Year: 2009
Color: White

Id: 45c49a6e
Year: 2001
Color: Yellow

Id: ca4d6eb4
Year: 2009
Color: Green

Id: 79fed2f8
Year: 1996
Color: Maroon

Id: b4c886ce
Year: 2007
Color: White

Id: aca3433f
Year: 1977
Color: White

Id: 539d4985
Year: 1969
Color: Green

Id: b78c129e
Year: 2008
Color: White

Id: b8f9890b
Year: 1993
Color: Blue

Id: e561f55f
Year: 2000
Color: Green

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.