Announcement Announcement Module
Collapse
No announcement yet.
SWF and JSF 2 integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SWF and JSF 2 integration

    sorry guys but I
    cannot find any information about Spring Web Flow and JSF 2 integration. Will the latest SWF2.0.8 work with JSF2? Are there any specific configuration steps? Or JSF2 will be supported in SWF3 only?
    thanks

  • #2
    I have the same question.
    Any comments on this?

    thanks
    björn

    Comment


    • #3
      Hi everybody,

      I started to get familiar with JSF2.0 and I like to integrate SWF2. I would also be really interested if this is supported.

      Thanks a lot.

      - Peter

      Comment


      • #4
        Hi,

        The latest SWF 2.0.8 does not work with JSF 2.0. But there is a hack that seems to work, see:

        http://jira.springframework.org/browse/SWF-1194

        Comment


        • #5
          Well I'm using those classes in my project (SWF 2.0.8, JSF 2.0.3, Spring 3.0.1). I can execute my program as long as i do not use any validators, I'm using the new Annotation Validation (@NotNull from the Hibernate 4.x Annotations).

          I get following exception:

          org.springframework.webflow.execution.FlowExecutio nException: Exception thrown in state 'helloWorld' of flow 'user/hello'
          at org.springframework.webflow.engine.impl.FlowExecut ionImpl.wrap(FlowExecutionImpl.java:569)
          at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:263)
          at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:163)
          at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
          at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:771)
          at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:716)
          at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:647)
          at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:563)
          at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
          at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
          at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:511)
          at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1166)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 343)
          at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:109)
          at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:97)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:78)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.authentication.http://www.BasicAuthenticationFilter...ilter.java:177)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.authentication.ui .DefaultLoginPageGeneratingFilter.doFilter(Default LoginPageGeneratingFilter.java:90)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:188)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:79)
          at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
          at org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:149)
          at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:237)
          at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
          at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157)
          at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:388)
          at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
          at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182)
          at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
          at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:418)
          at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230)
          at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
          at org.mortbay.jetty.Server.handle(Server.java:326)
          at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:542)
          at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:938)
          at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:755)
          at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:218)
          at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:404)
          at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:409)
          at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.java:582)
          Caused by: java.lang.UnsupportedOperationException
          at javax.faces.context.FacesContext.validationFailed( FacesContext.java:635)
          at javax.faces.component.UIInput.executeValidate(UIIn put.java:1205)
          at javax.faces.component.UIInput.processValidators(UI Input.java:693)
          at javax.faces.component.UIComponentBase.processValid ators(UIComponentBase.java:1081)
          at javax.faces.component.UIForm.processValidators(UIF orm.java:240)
          at javax.faces.component.UIComponentBase.processValid ators(UIComponentBase.java:1081)
          at javax.faces.component.UIComponentBase.processValid ators(UIComponentBase.java:1081)
          at javax.faces.component.UIViewRoot.processValidators (UIViewRoot.java:1176)
          at org.springframework.faces.webflow.FlowLifecycle.in vokePhase(FlowLifecycle.java:116)
          at org.springframework.faces.webflow.FlowLifecycle.ex ecute(FlowLifecycle.java:65)
          at org.springframework.faces.webflow.JsfView.processU serEvent(JsfView.java:116)
          at org.springframework.webflow.engine.ViewState.handl eEvent(ViewState.java:224)
          at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:196)
          at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
          at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:259)
          ... 54 more

          Comment

          Working...
          X