How do you update the page size of a PrimeFaces datatable dynamically?
问题 I am trying to update the page size of a PrimeFaces datatable dynamically, after the datatable is displayed on the page but I can't seem to be able to do that. I am using a lazy loaded datatable if that matters... putting an EL expression in the rows attribute and doing a table refresh does not work and causes the paginator to return no data. Any ideas if this is a bug and how to fix it? Thanks 回答1: You need not refresh or update the datatable. Use EL expression in rowsPerPageTemplate