DataTable - Basic

DataTable displays data in tabular format.

Documentation
IdYearBrandColor
902a0bff1978RenaultMaroon
3d88eeb11978VolvoRed
7a68fc331991JaguarRed
e1d76c7d1975FiatBlue
3f0d91f51972FiatWhite
7a5dbbbf1998FordSilver
185eac1c1973FordGreen
c183404f1979BMWBlack
90f6ecbe1965FiatBrown
c67325eb1994JaguarYellow
<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.