I have a data table displaying information retrieved from a database. I've added pagination to the data table with the 'bottom' position specified in my code below:
<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}">
The current display of my data table can be viewed here: https://i.sstatic.net/pExgH.png
However, the pagination appears below the displayed data instead of at the bottom of the screen. How can I correct this issue?