JSF 2 - ReRendering problem after upgrading to richfaces 4.5.17.Final

677 views Asked by At

a4j:commandLink and a4j:commandButton are not rendering results properly after upgrading richfaces from 4.2.2.Final to 4.2.17.Final.
Page loads data, only after refreshing page.

Sample: a4j:commandLink re renders two different a4j:outputPanels.

<a4j:commandLink actionListener="#{backingBean.loadStudentList}" value="Student List" onclick="jQuery('#sortSpinner').show();" oncomplete="jQuery('#sortSpinner').hide();" render="panel1,panel2"> </a4j:commandLink>

Issue: While clicking the link, the spinning icon is shown. But "onComplete" is never invoked. Only on refreshing the page does the icon hide and the page show results. An exception is shown in glassfish5 log, which implies that the error is in render response phase.

Exception: java.lang.NullPointerException at org.richfaces.resource.ResourceHandlerImpl.getRendererTypeForResourceName(ResourceHandlerImpl.java:299) at javax.faces.application.ResourceHandlerWrapper.getRendererTypeForResourceName(ResourceHandlerWrapper.java:218) at com.sun.faces.context.PartialViewContextImpl.renderComponentResources(PartialViewContextImpl.java:505) at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:337) at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:252) at org.richfaces.context.ExtendedPartialViewContext.processPartial(ExtendedPartialViewContext.java:264) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1124) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1905) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:465) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:194) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:126) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:223) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)

All the related jars are included as per migration guide. Can anyone help to solve this?

0

There are 0 answers