JARCH SHOWCASE
JARCH SHOWCASE
DataView DataView displays data in grid or list layout.
ui-button
ui-button
  • Id: e9d214df
    Year: 1989
    Color: Orange
  • Id: bd4f82fd
    Year: 1971
    Color: Brown
  • Id: 82d30874
    Year: 1966
    Color: Green
  • Id: 54a88087
    Year: 1997
    Color: Green
  • Id: ee02c36e
    Year: 1962
    Color: Black
  • Id: 696ca0a3
    Year: 1983
    Color: Orange
  • Id: 2ab006a8
    Year: 1986
    Color: Green
  • Id: 60987601
    Year: 1965
    Color: Yellow
  • Id: 29405927
    Year: 1998
    Color: Maroon
  • Id: 5376ec95
    Year: 1964
    Color: Orange
  • Id: 890d8f1b
    Year: 2004
    Color: Brown
  • Id: 3f674c28
    Year: 1981
    Color: Silver
Car Info
<style type="text/css">
    /*demo*/
    .ui-dataview-list .ui-dataview-row {
        border-bottom: 1px solid #A8A8A8;
        padding: 25px 10px;
        /* with the exported variables from Nova and Luna Themes*/
        border-bottom-color: var(--input-border-color, #A8A8A8);
    }

    .logo {
        width: 5%;
    }
    .detail {
        width: 85%;
        padding-left: 25px;
    }
</style>

<h:form id="form">
    <p:dataView var="car" value="[org.primefaces.showcase.domain.Car@70963244, org.primefaces.showcase.domain.Car@cc95ef49, org.primefaces.showcase.domain.Car@bbc35ccb, org.primefaces.showcase.domain.Car@e917bd6a, org.primefaces.showcase.domain.Car@2f83125e, org.primefaces.showcase.domain.Car@12884aae, org.primefaces.showcase.domain.Car@ff2d3657, org.primefaces.showcase.domain.Car@391dc596, org.primefaces.showcase.domain.Car@6cb75309, org.primefaces.showcase.domain.Car@6c7efd54, org.primefaces.showcase.domain.Car@d809ca11, org.primefaces.showcase.domain.Car@24dd6966, org.primefaces.showcase.domain.Car@9919eed0, org.primefaces.showcase.domain.Car@6511d8c3, org.primefaces.showcase.domain.Car@753a5f2b, org.primefaces.showcase.domain.Car@12b00cbe, org.primefaces.showcase.domain.Car@a5971a94, org.primefaces.showcase.domain.Car@f903901d, org.primefaces.showcase.domain.Car@b3a06749, org.primefaces.showcase.domain.Car@a5a5daa5, org.primefaces.showcase.domain.Car@3b101721, org.primefaces.showcase.domain.Car@34bd7349, org.primefaces.showcase.domain.Car@4131f438, org.primefaces.showcase.domain.Car@4404473, org.primefaces.showcase.domain.Car@32ae9f09, org.primefaces.showcase.domain.Car@49a62fcc, org.primefaces.showcase.domain.Car@426fe937, org.primefaces.showcase.domain.Car@ed7587aa, org.primefaces.showcase.domain.Car@d3893c66, org.primefaces.showcase.domain.Car@db1e0b8c, org.primefaces.showcase.domain.Car@7be626ff, org.primefaces.showcase.domain.Car@e4773f60, org.primefaces.showcase.domain.Car@a33fbe32, org.primefaces.showcase.domain.Car@551c61b7, org.primefaces.showcase.domain.Car@1fec783b, org.primefaces.showcase.domain.Car@1fb27a3, org.primefaces.showcase.domain.Car@8c4ac281, org.primefaces.showcase.domain.Car@26e58c98, org.primefaces.showcase.domain.Car@e39fe232, org.primefaces.showcase.domain.Car@abf33b8f, org.primefaces.showcase.domain.Car@99f4462f, org.primefaces.showcase.domain.Car@49227a8e, org.primefaces.showcase.domain.Car@1f67b470, org.primefaces.showcase.domain.Car@4bfc7877, org.primefaces.showcase.domain.Car@8967ce20, org.primefaces.showcase.domain.Car@f551d1f2, org.primefaces.showcase.domain.Car@802a089b, org.primefaces.showcase.domain.Car@762877f3]" rows="12" paginator="true" rowsPerPageTemplate="6,12,16"
                paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                gridIcon="pi pi-th-large" listIcon="pi pi-bars">

        <p:dataViewGridItem>
            <p:panel header="" style="text-align:center">
                <h:panelGrid columns="1" style="width:100%">
                    <p:graphicImage name="demo/images/car/.gif"/>

                    <h:outputText value="" />

                    <p:commandLink update=":form:carDetail" oncomplete="PF('carDialog').show()" title="View Detail">
                        <h:outputText styleClass="ui-icon pi pi-search" style="margin:0 auto;" />
                        <f:setPropertyActionListener value="" target="" />
                    </p:commandLink>
                </h:panelGrid>
            </p:panel>
        </p:dataViewGridItem>

        <p:dataViewListItem>
            <h:panelGrid columns="3" style="width:100%" columnClasses="logo,detail">
                <p:graphicImage name="demo/images/car/-big.gif" />

                <p:outputPanel>
                    <h:panelGrid columns="2" cellpadding="5">
                        <h:outputText value="Id:" />
                        <h:outputText value="" style="font-weight: bold"/>

                        <h:outputText value="Year:" />
                        <h:outputText value="" style="font-weight: bold"/>

                        <h:outputText value="Color:" />
                        <h:outputText value="" style="font-weight: bold"/>
                    </h:panelGrid>
                </p:outputPanel>

                <p:commandLink update=":form:carDetail" oncomplete="PF('carDialog').show()" title="View Detail">
                    <h:outputText styleClass="ui-icon pi pi-search" style="margin:0 auto;" />
                    <f:setPropertyActionListener value="" target="" />
                </p:commandLink>
            </h:panelGrid>
        </p:dataViewListItem>
    </p:dataView>

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

                <h:outputText value="Id:" />
                <h:outputText value="" />

                <h:outputText value="Year" />
                <h:outputText value="" />

                <h:outputText value="Color:" />
                <h:outputText value="" style="color:"/>

                <h:outputText value="Price" />
                <h:outputText value="$" />
            </p:panelGrid>
        </p:outputPanel>
    </p:dialog>
</h:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.