【发布时间】:2017-02-13 12:59:19
【问题描述】:
我有 Java 程序,我使用 Primefaces 分页和延迟加载。 我想在 rowsPerPageTemplate 中添加“全部显示”。
<p:dataTable var="info"
value="#{infoMB.lazyModel}"
id="infoTable"
width="100%"
liveResize="true"
paginator="true"
rows="50"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
rowsPerPageTemplate="50,100,"Show all" rowsPerPageAllEntry="true"
lazy="true">
【问题讨论】:
-
为什么不放在表头中
-
感谢您的评论,如何在 Header 中?
-
它看起来像这样
<f:facet name="header" > <p:commandButton value="Validate button" action="#{managedBean.method()}" > </p:commandButton> </f:facet>它会直接在<p:dataTable>下
标签: primefaces jsf-2 pagination