33

I'm using <p:dataTable> of PrimeFaces 3.3.1 with pagination. The pagination buttons appear in both the table header and footer. I would like to hide the pagination buttons in the table header and keep the ones in the table footer. How can I achieve this?

4

2 回答 2

73

根据PrimeFaces 用户指南<p:dataTable>VDL 文档,有一个paginatorPosition属性可以采用both(默认值)topbottom.

所以只需将paginatorPosition属性设置为bottom.

<p:dataTable ... paginatorPosition="bottom">
于 2012-08-04T11:52:32.777 回答
0

在标题上隐藏所有数据表分页符的替代方法:

.ui-paginator-top{
    display:none;
}
于 2018-11-02T22:54:12.497 回答