voyent
Issues in AJAX events in Spring Web Flow2 with JSF1.2 + Icefaces1.7  XML
Forum Index -> General Help
Author Message
jinal123

Joined: 09/Jan/2009 00:00:00
Messages: 4
Offline


We are evaluating spring web flow2.0 + JSF1.2 + Icefaces 1.7 for a new project. We were able to set up and configure a sample project with help of sample projects available on net.
We had the additional complexity since we wanted to use Visual JSF drag and drop feature which comes bundled with Netbeans IDE. The limitation of using Visual JSF is that it allows usage of only .jsp and .jspf files. So we decided not to use facelets which have default extension of .xhtml

Now coming to the problem we are facing.

One of the component in our pages Tabbed Panel set, do partial page submit, when user clicks on tab pane to select another tab, there is no action event associated with it and there is nothing in flow definition xml to handle it. Now when user selects the other tab, page is submitted and re-rendered but all the styles associated with tabbed panel component are lost. Following is the error trace at the server:

15:27:42,428 ERROR [OutputStyleRenderer] Error in OutputStyleRenderer
java.lang.IllegalArgumentException: path cannot be null
at com.icesoft.faces.application.D2DViewHandler.getRe sourceURL(D2DViewHandler.java:372)
at org.springframework.faces.webflow.FlowViewHandler. getResourceURL(FlowViewHandler.java:88)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl. getResourceURL(ViewHandlerImpl.java:222)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasi cRenderer.getResourceURL(DomBasicRenderer.java:795 )
at com.icesoft.faces.component.style.OutputStyleRende rer.encodeEnd(OutputStyleRenderer.java:86)
at javax.faces.component.UIComponentBase.encodeEnd(UI ComponentBase.java:836)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:580)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:575)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:575)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:575)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:551)
at com.icesoft.faces.application.D2DViewHandler.rende rView(D2DViewHandler.java:159)
at org.springframework.faces.webflow.FlowViewHandler. renderView(FlowViewHandler.java:92)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl. renderView(ViewHandlerImpl.java:283)
at org.springframework.faces.webflow.JsfView.render(J sfView.java:94)
at org.springframework.webflow.engine.ViewState.rende r(ViewState.java:245)
at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:204)
at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262)
at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
at com.icesoft.faces.webapp.http.core.SwfLifecycleExe cutor.apply(SwfLifecycleExecutor.java:58)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpda tes.renderCycle(ReceiveSendUpdates.java:94)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpda tes.service(ReceiveSendUpdates.java:54)
at com.icesoft.faces.webapp.http.core.RequestVerifier .service(RequestVerifier.java:26)
at com.icesoft.faces.webapp.http.common.standard.Path DispatcherServer.service(PathDispatcherServer.java :24)
at com.icesoft.faces.webapp.http.servlet.MainSessionB oundServlet.service(MainSessionBoundServlet.java:1 60)
at com.icesoft.faces.webapp.http.servlet.SessionDispa tcher$1.service(SessionDispatcher.java:38)
at com.icesoft.faces.webapp.http.servlet.ThreadBlocki ngAdaptingServlet.service(ThreadBlockingAdaptingSe rvlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentA daptingServlet.service(EnvironmentAdaptingServlet. java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispa tcher.service(SessionDispatcher.java:55)
at com.icesoft.faces.webapp.http.servlet.SessionVerif ier.service(SessionVerifier.java:19)
at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet. service(MainServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.s ervice(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionV alve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.authenticator.SingleSignOn.inv oke(SingleSignOn.java:393)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:562)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)

The page is displayed properly for a new request or on page refresh.
This is a showstopper for us and idea of using SWF is now on hold till we resolve this issue.
Any help in this regard will be highly appreciated.

Thanks
Reply With Quote
PankajS

Joined: 19/Feb/2009 00:00:00
Messages: 5
Offline


We are also facing the same problem.
Is this some thing related to Resource servlet.
We commented out resource servlet entry in web.xml and we could get the styles. But we again faced style issues when we have some AJAX request which is not tied to any action in webflow xml.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team