Datatable does not update in 2.2 final with forwarded view

UI Components for JSF
Post Reply
brazzy
Posts: 23
Joined: 23 Dec 2010, 12:55

09 Feb 2011, 13:48

While trying out 2.2 final, I've found a serious issue (possibly MyFaces-specific) with datatable that does not occur in 2.2 RC2:

when the view is forwarded (i.e. current URL does not match the ID of the view that contains the table), AJAX updates for pagination, sorting and filtering do not work at all: the requests do hit the server, but the response does not contain the view update data.

The problem seems to be that FaceletViewDeclarationLanguage.buildView() aborts early after isFilledView() returns false.
  • Primefaces 2.2RC2 / 2.2 Final
  • Myfaces 2.0.2
  • Facelets
  • Tomcat 7.0.5

IanF
Posts: 22
Joined: 22 Mar 2010, 21:33

09 Feb 2011, 16:42

I am also seeing the pagination problem with 2.2 Final on Mojarra 2.04. Before using a command button to view a different screen the pagination is fine. As soon as I return from the other screen, pagination is completely dead.
Thanks,

(Weblogic 12.1.2.0.0
Mojarra 2.1.28,
PrimeFaces 4.0.12,
NetBeans 8)

IanF
Posts: 22
Joined: 22 Mar 2010, 21:33

09 Feb 2011, 16:53

I've found and exception message which occurs after I return to the original page and try to use a pagination control:

<?xml version='1.0' encoding='UTF-8'?>
<partial-response><error><error-name>class java.lang.IndexOutOfBoundsException</error-name><error-message><![CDATA[Index: 0, Size: 0]]></error-message></error><extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension></partial-response>
Thanks,

(Weblogic 12.1.2.0.0
Mojarra 2.1.28,
PrimeFaces 4.0.12,
NetBeans 8)

IanF
Posts: 22
Joined: 22 Mar 2010, 21:33

09 Feb 2011, 16:54

Here's the complete exception:

javax.faces.FacesException: Unexpected error restoring state for component with id j_idt29. Cause: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
at com.sun.faces.application.view.StateManagementStrategyImpl$1.visit(StateManagementStrategyImpl.java:273)
at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1485)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
at com.sun.faces.component.visit.VisitUtils.doFullNonIteratingVisit(VisitUtils.java:75)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:257)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:181)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:448)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:167)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:93)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1432)
at com.sun.faces.application.view.StateManagementStrategyImpl$1.visit(StateManagementStrategyImpl.java:265)
Thanks,

(Weblogic 12.1.2.0.0
Mojarra 2.1.28,
PrimeFaces 4.0.12,
NetBeans 8)

tobias
Posts: 13
Joined: 14 Jan 2011, 20:19

09 Feb 2011, 17:01

Ih had a similar issue with Primefaces 2.2 Final, which has been solved by the following fix:

http://code.google.com/p/primefaces/iss ... il?id=1704

It seems like a different symptom of issue 1704.

IanF
Posts: 22
Joined: 22 Mar 2010, 21:33

10 Feb 2011, 17:15

I tested with the latest 3.0 snapshot and this issue has been resolved there.This is a pretty significant problem for 2.2 not being able to sort or filter or paginate after leaving and returning to a page.

Is there any chance this can be included in the 2.2.1 release next week?
Thanks,

(Weblogic 12.1.2.0.0
Mojarra 2.1.28,
PrimeFaces 4.0.12,
NetBeans 8)

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

10 Feb 2011, 17:19

Yes, fix is also in for 2.2.1 already.

mSephiroth
Posts: 47
Joined: 15 Mar 2010, 22:09
Location: Guatemala
Contact:

11 Feb 2011, 00:33

Hi, thanks optimus for the work!! :D

Where can I download de PF 2.2.1??
Glassfish 3.x, Mojarra 2.1.0 (FCS 2.1.0-b11), Netbeans 6.9, PF 2.2.1, Ubuntu 9.10

I will...never be a mere memory!!

Superstef
Posts: 7
Joined: 31 Aug 2010, 13:32

11 Feb 2011, 09:39

Hi,

I have the same problem.

Can you tell us where we can download 2.2.1???

Thx
Superstef

brazzy
Posts: 23
Joined: 23 Dec 2010, 12:55

11 Feb 2011, 11:33

Version 2.2.1 is still being developed (after all, 2.2 has only been out for a few days).

You'll probably first find nightly snapshots here: http://repository.prime.com.tr/org/prim ... rimefaces/
  • Primefaces 2.2RC2 / 2.2 Final
  • Myfaces 2.0.2
  • Facelets
  • Tomcat 7.0.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 58 guests