<p:dataTable
styleClass="wr_datatable"
id="study_tab"
paginatorPosition="bottom"
var="datas"
value="#{datasBean.listDatas}"
widgetVar="dataTable"
emptyMessage="No data found. Please change the search criteria above."
paginator="true"
selection="#{dataBean.selectedData}"
rowKey="#{datas.data_pk}"
selectionMode="single"
rowIndexVar="indexvar"
draggableColumns="true"
resizableColumns="true"
paginatorTemplate="{CurrentPageReport}
{FirstPageLink}
{PreviousPageLink}
{PageLinks}
{NextPageLink}
{LastPageLink}
{RowsPerPageDropdown}"
rows="10"
rowsPerPageTemplate="5,10,15,20"
我設置了我的表格數據結構視圖像上面一樣。PrimeFaces rowsperpagetemplate
我可以使用下面的代碼獲取當前頁:
(PF('dataTable').paginator.getCurrentPage()
我只是想知道我怎麼能得到primefaces rowpagetemplate或在我的JavaScript({RowsPerPageDropdown}動態行進行精確?