JARCH SHOWCASE
JARCH SHOWCASE
DataTable - Header and Footer Header and Footer section are defined using facets.
List of Cars
IdYearBrandColor
a5020fb81997VolvoOrange
7372533a1978VolvoOrange
ce4c176e1994MercedesMaroon
6a2cf41e2000VolvoYellow
079bc79b1977AudiMaroon
d0a0e0421991FordGreen
56de6a4c2002JaguarRed
b4bb50df1966FiatOrange
95fdb3db1974JaguarWhite
3adcfb1d1976JaguarSilver
<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.