JARCH SHOWCASE
JARCH SHOWCASE
DataTable - SummaryRow SummaryRow is a helper component of datatable used for dynamic grouping.
IdYearBrandColor
a7b0458e2001VolkswagenMaroon
9aded8611973MercedesGreen
3795a9c22005FiatSilver
740b82be2000AudiMaroon
d53c60fc1974JaguarSilver
37e2adea2000FordBlack
dae8857e1960FiatYellow
a302a9441992RenaultBrown
9ecb9cd31995HondaOrange
845f5e0e1984JaguarWhite
b42d8da32007JaguarGreen
fdc631081976FordMaroon
8bee700e2003VolvoYellow
8d3cfe9c1968HondaWhite
db0814981982BMWYellow
92317ec82004AudiBlack
eedb50031984JaguarOrange
9e1d833f2000VolvoSilver
99ec3e4e1989AudiWhite
28bed8f91980BMWWhite
304839e71982VolkswagenBlue
2e8d115f1991BMWGreen
bc7f37d61994FordBrown
669836f31996HondaSilver
ba63a4381998BMWBrown
6f5661401992FordRed
6c278a3a1995HondaWhite
801f932a1967MercedesYellow
7fba50f01992BMWOrange
1822e2651997MercedesBlue
b5c9192f1974RenaultBrown
91d71efe1999HondaOrange
c14bf4aa1966JaguarOrange
a515cdca1962JaguarRed
da3f47e81967BMWBrown
beb0fa7e1999VolkswagenRed
524dfa911987FordMaroon
486693fd1964MercedesSilver
56564e241972JaguarOrange
7a9c02ef1969VolkswagenBlue
6c9b019f1979HondaOrange
ba1b1c4b1972JaguarMaroon
7f00b5691984HondaSilver
71d770e61989BMWBlack
aee6eb6e2006VolkswagenOrange
a6592d0c2003VolkswagenRed
46c36eea1970VolvoRed
af7a68a71963FiatBrown
f519f2ef1990HondaBrown
38b1f2781994HondaBlack
<a:form>
    <a:dataTable var="car" value="#{dtSummaryRowView.cars}" sortBy="#{car.brand}">
        <a:column headerText="Id" sortBy="#{car.id}">
            <h:outputText value="#{car.id}" />
        </a:column>
        <a:column headerText="Year" sortBy="#{car.year}">
            <h:outputText value="#{car.year}" />
        </a:column>
        <a:column headerText="Brand" sortBy="#{car.brand}">
            <h:outputText value="#{car.brand}" />
        </a:column>
        <a:column headerText="Color" sortBy="#{car.color}">
            <h:outputText value="#{car.color}" />
        </a:column>
        <a:summaryRow>
            <a:column colspan="3" style="text-align:right">
                <h:outputText value="Total:" />
            </a:column>
            <a:column>
                <h:outputText value="#{dtSummaryRowView.randomPrice}">
                    <f:convertNumber type="currency" currencySymbol="$" />
                </h:outputText>
            </a:column>
        </a:summaryRow>
    </a:dataTable>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.