JARCH SHOWCASE
JARCH SHOWCASE
DataTable - Header and Footer Header and Footer section are defined using facets.
List of Cars
IdYearBrandColor
7597b24f1982FordOrange
933662151996BMWMaroon
180589741974FordBlue
826602e41987HondaSilver
659f94581991VolvoOrange
e853ef801981FordYellow
439fe6531992AudiGreen
10137d8e1972VolkswagenBlue
985c46201970JaguarBlue
19a10f4f1990MercedesSilver
<a:dataTable var="car" value="#{dtBasicView.cars}">
    <f:facet name="header">
        List of Cars
    </f:facet>

    <a:column headerText="Id">
        <h:outputText value="#{car.id}" />
    </a:column>

    <a:column headerText="Year">
        <h:outputText value="#{car.year}" />
    </a:column>

    <a:column headerText="Brand">
        <h:outputText value="#{car.brand}" />
    </a:column>

    <a:column headerText="Color">
        <h:outputText value="#{car.color}" />
    </a:column>

    <f:facet name="footer">
        In total there are #{fn:length(dtBasicView.cars)} cars.
    </f:facet>
</a:dataTable>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.