DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
ba849a2a2000VolvoYellow
84c7ff651981FordGreen
95105a341997AudiSilver
d28a55271964AudiMaroon
179216a61993VolkswagenSilver
5c2f4aac1996FordBlue
894238212008HondaBlue
ab483fe21993FiatMaroon
0260553a1974HondaYellow
87fc67111974HondaBlack
<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>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.