DataTable - Sticky Header Header of the datatable can be fixed to keep it in viewport during scroll.
IdYearBrandColor
5943a74e1995HondaOrange
96885eab1982FordOrange
a88e8ad61999VolkswagenSilver
69ced6bf2008FordWhite
f6e25add1977HondaBlue
030156021970RenaultYellow
33a314681965VolvoBlack
0a9fddab1964RenaultOrange
15c0ee4f1970FordWhite
71e3df261993JaguarRed
7226a56b2008AudiBlack
fefe47831992BMWBlack
3535b9b41980AudiOrange
1f4052bb2009VolkswagenBrown
170833072000RenaultWhite
11d41ad11985FiatBlack
dc15c95c1964FordMaroon
b5bf75f91985VolkswagenBrown
e4ae32991985FordWhite
fa3f988f2002FordMaroon
03206c7b1990BMWSilver
4b2898f51974VolkswagenMaroon
c58ec59f1983JaguarSilver
f6197caa1983VolvoSilver
fda685b41995FiatGreen
3d497f4e1997HondaBlue
f2c116ca1987AudiBlack
811959781970HondaGreen
9aa7c9081986RenaultOrange
cb2e702b1974VolvoRed
c9f32fd01971VolvoSilver
a10122ad1968JaguarSilver
d81a146b1965MercedesYellow
287e20531998FordGreen
3e11c8822006MercedesGreen
37f21ac81973FiatOrange
b9bed4781982HondaGreen
bed5b6022002RenaultBrown
d78af52d1965MercedesBlack
1846e5431965RenaultRed
884260561991FordYellow
842eab911980MercedesWhite
370728111960VolvoBlue
37bc5ade1965AudiOrange
017e9c582008VolkswagenSilver
86045f591968FiatBlue
fad8c9701965FiatBrown
27ccac001976HondaYellow
d28a29b91969RenaultOrange
7c7b7a2e2003RenaultYellow
<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 © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.