Duplicate headers in primefaces data table

不羁岁月 提交于 2021-02-11 14:34:26

问题


When I use stickyHeader=true on primefaces data table I see two headers generated. Second is 5 rows below the actual header and it is happening on all my pages. Anybody had this issue and got it resolved?

<p:dataTable var="product" value="#{productBean.products}" stickyHeader="true">
<p:column headerText="Name">
    <h:outputText value="#{product.name}" />
</p:column>
<p:column headerText="Year">
    <h:outputText value="#{product.year}" />
</p:column>    
<p:column headerText="Active">
    <h:outputText value="#{product.active}" />
</p:column>

来源:https://stackoverflow.com/questions/54487629/duplicate-headers-in-primefaces-data-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!