Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

DataTable SubTable

SubTable is a helper component for grouping.

NBA Teams
TeamStats
WinsLosses
Los Angeles Lakers
2005-20065032
2006-20074438
2007-20084042
2008-20094537
2009-20104834
2010-20114242
Totals: 269225
Boston Celtics
2005-20064636
2006-20075032
2007-20084141
2008-20094537
2009-20103844
2010-20113547
Totals: 255237

<h:form>
    <div class="card">
        <p:dataTable var="team" value="#{subTableView.teams}">
            <f:facet name="header">
                NBA Teams
            </f:facet>

            <p:columnGroup type="header">
                <p:row>
                    <p:column rowspan="2" headerText="Team"/>
                    <p:column colspan="2" headerText="Stats"/>
                </p:row>
                <p:row>
                    <p:column headerText="Wins"/>
                    <p:column headerText="Losses"/>
                </p:row>
            </p:columnGroup>

            <p:subTable var="stats" value="#{team.stats}">
                <f:facet name="header">
                    <h:outputText value="#{team.name}"/>
                </f:facet>
                <p:column>
                    <h:outputText value="#{stats.season}"/>
                </p:column>
                <p:column>
                    <h:outputText value="#{stats.win}"/>
                </p:column>
                <p:column>
                    <h:outputText value="#{stats.loss}"/>
                </p:column>
                <p:columnGroup type="footer">
                    <p:row>
                        <p:column footerText="Totals: " class="text-right font-bold"/>
                        <p:column footerText="#{team.allWins}" class="font-bold"/>
                        <p:column footerText="#{team.allLosses}" class="font-bold"/>
                    </p:row>
                </p:columnGroup>
            </p:subTable>
        </p:dataTable>
    </div>
</h:form>