Hi,
If userContr isn't ViewScoped, try with ViewScoped.
2.2RC1 DataTable throw "/ by zero"
-
- Posts: 4
- Joined: 04 Nov 2010, 23:47
Actually, I have the same problem. Here's my load function.
This function lists samples by quarter. If quarter is not yet defined, the function will set the row count to 0 and return an empty list. Even so, LazyDataModel should not be crashing in this way.
- Pasha Minallah
Code: Select all
public List<Sample> load(int first, int pageSize, String sortField, boolean sortOrder, Map<String,String> filters)
{
this.setRowCount(getFacade().count(getQuarter()));
return getFacade().findAll(getQuarter(), false, pageSize, first);
}
- Pasha Minallah
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please add this issue to this post where we collect datatable issues for 2.2.RC1;
http://primefaces.prime.com.tr/forum/vi ... f=3&t=5719
http://primefaces.prime.com.tr/forum/vi ... f=3&t=5719
-
- Information
-
Who is online
Users browsing this forum: No registered users and 39 guests