LazyDataModel does not work with request scope

UI Components for JSF
Post Reply
User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

27 Jun 2011, 19:43

It appears that the LazyDataModel will not work with request scope. Has anyone else run into this issue. I get the following exception when I use request scope:
java.lang.ClassCastException: javax.faces.model.ListDataModel cannot be cast to org.primefaces.model.LazyDataModel
If I change the scope to SessionScoped then the exception does not occur and the datatable behaves as expected.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

27 Jun 2011, 19:51

Ok, looks like I'm not the only one: http://primefaces.prime.com.tr/forum/vi ... =10#p30744

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

27 Jun 2011, 19:57


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests