2.2RC1 DataTable throw "/ by zero"

UI Components for JSF
Post Reply
callahan
Posts: 768
Joined: 27 May 2010, 22:52

04 Nov 2010, 10:16

Hi,

If userContr isn't ViewScoped, try with ViewScoped.

toreador923
Posts: 4
Joined: 04 Nov 2010, 23:47

06 Nov 2010, 14:30

Actually, I have the same problem. Here's my load function.

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);
}
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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Nov 2010, 19:51

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests