Page 1 of 1

datatable: java.lang.ArithmeticException: / by zero

Posted: 27 Jul 2011, 21:00
by jotremar
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

Re: datatable: java.lang.ArithmeticException: / by zero

Posted: 27 Jul 2011, 22:54
by cagatay.civici

Re: datatable: java.lang.ArithmeticException: / by zero

Posted: 02 Dec 2011, 06:46
by smithh032772
For others experiencing this error, I just provided a fix/workaround. See/click URL below and see my comment added:

http://code.google.com/p/primefaces/iss ... il?id=1544