datatable: java.lang.ArithmeticException: / by zero
Posted: 27 Jul 2011, 21:00
I have a datatable with lazy load and in cell edit.
When I try to edit a row and save it, I have this error:
java.lang.ArithmeticException: / by zero
at org.primefaces.model.LazyDataModel.setRowIndex(LazyDataModel.java:62)
I resolv it checking if PageSize is zero in load method from LazyDataModel, but this is not a good option, it must read this from datatable (rows property).
If I don't set rows property from datatable it have this error on load page (it have not a default value).
PF 2.2.1
When I try to edit a row and save it, I have this error:
java.lang.ArithmeticException: / by zero
at org.primefaces.model.LazyDataModel.setRowIndex(LazyDataModel.java:62)
I resolv it checking if PageSize is zero in load method from LazyDataModel, but this is not a good option, it must read this from datatable (rows property).
If I don't set rows property from datatable it have this error on load page (it have not a default value).
PF 2.2.1