ICEfaces
  1. ICEfaces
  2. ICE-3821

Spring Web Flow compatibility with state saving

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8DR#1
    • Fix Version/s: 1.8DR#2, 1.8
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      SWF 2.0.3

      Description

      The following code in renderView() is commented out:

      if ( CoreUtils.isJSFStateSaving() ) {
         StateManager stateMgr = context.getApplication().getStateManager();
         stateMgr.saveSerializedView(context);
      //JSF 1.1 removes transient components here, but I don't think that 1.2 does
      }

      In JSF 1.2 ViewHandlerImpl we have:

         renderView()
            flushToWriter()
                stateManager.saveView(context)


      FormRenderer calls ViewHandler.writeState() which appears to do
      very little in the JSF RI ... whereas this is where we perform
      the state saving.

      The exception seen is:

      Nov 12, 2008 12:02:52 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
      org.springframework.webflow.engine.NoMatchingTransitionException: No transition found on occurence of event 'search' in state 'reviewHotels' of flow 'main' -- valid transitional criteria are array<TransitionCriteria>[sort, previous, next, select, changeSearch] -- likely programmer error, check the set of TransitionCriteria for this state
      at org.springframework.webflow.engine.TransitionableState.getRequiredTransition(TransitionableState.java:93)
      at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
      at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:561)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:373)
      at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:197)
      at org.springframework.webflow.engine.ViewState.resume(ViewState.java:206)
      at org.springframework.webflow.engine.Flow.resume(Flow.java:551)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:263)
      ...

        Activity

        Hide
        Ken Fyten added a comment -

        Confirmed working.

        Show
        Ken Fyten added a comment - Confirmed working.
        Hide
        Joanne Bai added a comment -

        QA tested it successfully on ICEfaces-1.8.0-DR2 build 13.

        Spring build revision: 495
        swf-booking-icefaces revision: 18091
        Tomcat 6 + FF2

        Show
        Joanne Bai added a comment - QA tested it successfully on ICEfaces-1.8.0-DR2 build 13. Spring build revision: 495 swf-booking-icefaces revision: 18091 Tomcat 6 + FF2

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: