DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
78d0e0391983VolvoBlack
672367671999FiatBlack
44a4a3741987VolvoYellow
c8797c3c1966HondaWhite
f90ca6ec1968JaguarOrange
764d82991960AudiWhite
ef5543841966BMWMaroon
725cd5af2001FiatYellow
5a10b51b1977AudiGreen
ade4e0ec1992FiatMaroon
<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.16 on Mojarra-2.2.8.