0
我有數據表顯示我的數據庫中的數據。我將分頁包含到我的數據表中'底部'的位置。我的代碼:底部屏幕上的Primefaces數據表分頁
<p:dataTable var="item" id="initemList" widgetVar="initemList" value="#{initemController.initems}"
paginator="true" rows="50" reflow="true"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {CurrentPageReport}"
currentPageReportTemplate="{startRecord} - {endRecord} of {totalRecords}" paginatorPosition="bottom"
rowsPerPageTemplate="10,25,50" selectionMode="single" scrollable="true"
selection="#{initemController.selectedInitem}" rowKey="#{item.itemid}">
我的分頁是不是底部屏幕上,但我下面的數據。我怎麼能做到這一點?
但對於這個工作,你需要給「容器」,其中'.ui-paginator'生活在一個固定的高度,否則它仍然是不變的? – Kukeltje
@Kukeltje對我來說這是工作。但是,這可能取決於其他造型。 –