DataTable - Basic DataTable displays data in tabular format.
IdYearBrandColor
e2913bda1982VolvoGreen
972ce2e71984VolkswagenBlack
da7a038e1962FordBlue
71d4e6b11966FordRed
0f1b6c631993HondaRed
5750e98f1968FordOrange
40adc7da1995FordBrown
8fb559851987HondaYellow
4f3d30811963MercedesBlack
08b7e3ef1967MercedesYellow
<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.