3.0.RC1 + pagination + SelectableDataModel Error

UI Components for JSF
Post Reply
alejotroncoso
Posts: 2
Joined: 13 Dec 2011, 19:02

13 Dec 2011, 21:26

I'm running Instant Row Selection showcase-labs example in my environment (see signature).

The selection works fine in any page in any row for the first time, but when I change to another page, the selection sticks in the last Car selected (in the previous page), and also the pagination breaks and it doesn't refresh the rows any more, It stays showing the same rows ignoring the page change requested.

I have added the following annotations,

Code: Select all

...
@ManagedBean(name = "tableBean")
@ViewScoped
public class TableBean { 
...
I have removed the listener="#{tableBean.onRowSelect}" so the dataTable definition states as follow:

Code: Select all

             ...
            <p:dataTable var="car" value="#{tableBean.mediumCarsModel}" paginator="true" rows="10"
                         selection="#{tableBean.selectedCar}" selectionMode="single">

                <p:ajax event="rowSelect" update=":form:display :form:growl" oncomplete="carDialog.show()" />
            ...

The Server is giving me this output when I load the page.


Dec 13, 2011 1:13:10 PM javax.faces.component.UIViewRoot$ViewMap put
WARNING: Setting non-serializable attribute value into ViewMap: (key: tableBean, value class: org.primefaces.examples.view.TableBean)


The same error happens with basic row selection. I have tested it in Chrome an IE9.

Thanks a lot for any clue!
JSF 2.0 Sun Microsystems, Inc. Version 1.0.0.0_2-0-2
Weblogic 10.3.5
Primefaces 3.0.RC1
Chrome

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests