DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
e61fc5d91993FordMaroon
5f74c97d1979JaguarBlack
80044d851990FiatBlue
22a955a91994VolvoMaroon
3d4ae8401976MercedesBrown
c1ac766b1962HondaSilver
ef6dead11983BMWSilver
6b2a9d312006JaguarBrown
2d27b7f11999RenaultBrown
dec9ed9c2006RenaultGreen
<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.0.12 on Mojarra-2.2.8.