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

Id: c9275f2f
Year: 1970
Color: Black

Id: 79152530
Year: 1988
Color: Yellow

Id: 0a8e7cd4
Year: 1969
Color: Brown

Id: 7aa67f15
Year: 2002
Color: Orange

Id: a155a44d
Year: 1984
Color: Silver

Id: 2ea67881
Year: 2005
Color: Yellow

Id: ea3b2551
Year: 2000
Color: Maroon

Id: 222fff8d
Year: 1987
Color: Silver

Id: ca80bae6
Year: 1994
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.