DataTable - Basic

DataTable displays data in tabular format.

Documentation
IdYearBrandColor
f3cf79531971AudiSilver
b50de7e61995JaguarBlue
36e3dab31971HondaSilver
628ddd601976JaguarBlue
a82a13c91985FordOrange
16b5d7b61974VolvoGreen
8f2b93b22005RenaultRed
0bae935b1971FordOrange
acbdecf31974BMWMaroon
22b95cf41985FiatBrown
<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.