DataTable - Sticky Header Header of the datatable can be fixed to keep it in viewport during scroll.
IdYearBrandColor
6f9a73162002VolkswagenRed
b056a2d11983RenaultRed
6be1b9432001BMWRed
785ca6ad1968MercedesBrown
048e18be1989JaguarBlack
745675d91998MercedesWhite
1786a4652006VolkswagenMaroon
47d7eb9a2004HondaWhite
c808e4c81984VolkswagenBlue
3a489d621997AudiYellow
0212b4f81961VolkswagenYellow
b760a8791971VolvoSilver
2f96cda71986AudiBrown
a1e7f9c31969AudiBlue
6b4888e91996BMWBrown
a643ada22005VolvoYellow
397cf05b1981RenaultOrange
ceebbb6e1989JaguarYellow
014c61ab2003VolkswagenWhite
609ee2cb1984FordRed
106e996a1996VolkswagenGreen
39e2fca91970VolvoSilver
1020d12d1976FiatWhite
0e528a201995BMWBrown
9d646a701971JaguarBlack
149ab62d1981HondaYellow
5035b92f1965FiatBrown
3bb954281999AudiWhite
24f93b551996VolvoRed
37cbadb71992RenaultBlue
6c1160db1982JaguarGreen
9b607e491989JaguarMaroon
15527c9e1983MercedesWhite
accdc2512008AudiYellow
73878cae1962FordWhite
e5251da91966VolkswagenBlack
c36dca9c1989AudiMaroon
84482bc31985FiatRed
daf46bde1990AudiBlack
30b9a22e2004FiatBrown
e5c1f2971984JaguarSilver
0b83df941998JaguarRed
2cffab231990JaguarMaroon
5876a67d1992BMWBrown
81a66f572001FiatWhite
b0bc43511993BMWWhite
2629babc1994FordGreen
563ebbc32008VolkswagenOrange
7cce4b5f2008MercedesOrange
f145772d1969BMWRed
<p:dataTable var="car" value="#{dtStickyView.cars}" stickyHeader="true">
    <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.