DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
8d4028881982RenaultRed
11f7c7ba1972FordMaroon
707378781995VolvoMaroon
fd6287c01971VolkswagenBrown
2ab708ec1992RenaultSilver
cc5f9a422009RenaultBlack
ade6c38a1995HondaGreen
f2cc24b31991JaguarMaroon
e3ecd70e2006JaguarBlue
b8152bb11972RenaultOrange
<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 © 2017
All rights reserved.
Running PrimeFaces-6.1.4 on Mojarra-2.2.10.