DataTable - Basic

DataTable displays data in tabular format.

Documentation
IdYearBrandColor
df52428e1998FordGreen
f5b5d80c1990FiatOrange
5af913ba1971BMWRed
b40750531967JaguarGreen
0d4242f61972MercedesOrange
70f580431974FordWhite
a8c9b8b51985FiatOrange
e2a2de7d1975VolvoRed
7553a22e2004FiatWhite
1ce5ca3e1995VolvoYellow
<p:dataTable var="car" value="#{dtBasicView.cars}">
    <p:column headerText="Id">
        <h:outputText value="#{car.id}" />
    </p:column>

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

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

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

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.