Paginator broken in 2.2?

UI Components for JSF
Post Reply
shred
Posts: 11
Joined: 02 Nov 2010, 17:45

07 Feb 2011, 02:42

Hi!

I just switched from 2.2.RC2 to 2.2 and found out that the data table paginator seems to be broken now.

The datatable and its paginator is still rendered correctly. However, when I click on another page number (or on a seek button), nothing happens. When I reload the form and then try again, it suddenly works. With 2.2.RC2, it was working all the time.

The dataTable tag looks like this:

Code: Select all

<p:dataTable id="pageList" var="page" value="#{pageBean.list()}" selection="#{pageBean.selectedPage}" rows="20" paginator="true">
Firebug shows that when I click on a paginator button, an AJAX request is submitted, but the server's response does not contain an <update id="listForm:pageList"> element:

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[6519151882066240927:2364608889729276204]]></update><extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response>
On the server side, no exception is shown in the log.

Is my code broken, or should I file a bug?

Thanks in advance!

John.Wayne
Posts: 2
Joined: 03 Jan 2011, 23:52

10 Feb 2011, 01:17

Did you find any solutions to this? I am having the same problem. It is not just pagination that is broke, all ajax calls are broke until the page is reloaded.

shred
Posts: 11
Joined: 02 Nov 2010, 17:45

10 Feb 2011, 10:52

Yes, <p:inplace editor="true"> also broke after the update. When I clicked on its OK button, nothing happened. I have added some debug output to pageBean.list(), and found out that the method isn't even invoked when the bug occurs.

My solution was to revert to 2.2.RC2 for the time being.

Do you use Spring, and is your "pageBean" a Spring bean that is session scoped?

shred
Posts: 11
Joined: 02 Nov 2010, 17:45

10 Feb 2011, 11:13

I have just filed Bug 1722 for this issue.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 56 guests