DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
db9dcae11986AudiSilver
be608a981990RenaultBlue
4dd469be2004BMWWhite
ab773e1a1993JaguarWhite
c407b59a1961AudiSilver
5df689941982JaguarMaroon
9f15042f1980FiatSilver
b6ee2f6e1968VolvoWhite
e06168202004RenaultBlack
e23a15cd1986AudiBrown
<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.