We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You currently cannot capture rows per page changes (from the rowsPerPageTemplate attribute) through the PageEvent using the page event of a DataTable.
rowsPerPageTemplate
PageEvent
page
DataTable
Add a rowsPerPage property so you can.
rowsPerPage
As a workaround you can use the request parameter
public void onPaginate() { final DataTable dataTable = (DataTable) Components.getCurrentComponent(); final String rppParam = Faces.getRequestParameter(dataTable.getClientId() + "_rppDD"); System.out.println("rppParam: " + rppParam); }
Also, in the current documentation is not clear you can use the page event to capture rows per page changes.
The text was updated successfully, but these errors were encountered:
Does DataTable#getRowsPerPage() work in onPaginate()?
DataTable#getRowsPerPage()
onPaginate()
Sorry, something went wrong.
No it does not. At least not when you change the rows per page. See https://discord.com/channels/787967399105134612/787967662293909524/1227188716250992701
No branches or pull requests
Description
You currently cannot capture rows per page changes (from the
rowsPerPageTemplate
attribute) through thePageEvent
using thepage
event of aDataTable
.Describe the solution you would like
Add a
rowsPerPage
property so you can.Additional context
As a workaround you can use the request parameter
Also, in the current documentation is not clear you can use the
page
event to capture rows per page changes.The text was updated successfully, but these errors were encountered: