DataTable - Basic

DataTable displays data in tabular format.

Documentation
IdYearBrandColor
c68f1cbb2007HondaBrown
1645bfb61976VolvoBlue
204a378a1961AudiSilver
15fae92c1992HondaBrown
d7c76e961968HondaWhite
f51aa8a61994VolvoGreen
ffa89f5f1986HondaBlue
385d7fb11982AudiSilver
212813151999AudiBlue
2f62f67d1976JaguarSilver
<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.