DataTable - Basic

DataTable displays data in tabular format.

Documentation
IdYearBrandColor
d54ddecc1960FiatYellow
229098f71970FordMaroon
e6e3191c1973FordRed
cc0af7a82001HondaWhite
74bc7ea82008VolkswagenMaroon
cea145e81986JaguarOrange
a36382732004JaguarSilver
fc1a632d1980FiatRed
bb44336c1981VolvoBrown
e7122ea62001MercedesBrown
<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.