JARCH SHOWCASE
JARCH SHOWCASE
DataTable - Header and Footer Header and Footer section are defined using facets.
List of Cars
IdYearBrandColor
165489891986FordBrown
57d593791998VolvoBlue
457c669c1971JaguarRed
96ecf9b11963BMWGreen
58f5101a1994VolvoWhite
879c14752007RenaultOrange
ae93c6a01971BMWMaroon
fe52b5281996JaguarSilver
23b8014e1969HondaGreen
ad13ebf02008FordRed
<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.