DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
3e703abe1998HondaOrange
b1cb90181996MercedesWhite
966e6de61971MercedesGreen
f05838bb1999FordSilver
bbcea6661993FordBrown
b7b3e5282002HondaBlack
96995baa1974RenaultBlack
919bebaa1998HondaYellow
b97dc7172001FiatSilver
f9b1d5301996VolvoYellow
<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.3-SNAPSHOT on Mojarra-2.3.2.