Hi Per, you should be able to pre-execute components with webflow to make sure that response is not committed yet in case of redirects. See [1] for more details.
HTH, Jan [1] http://documentation.magnolia-cms.com/modules/blossom.html#Preexecutionofcomponents On Aug 17, 2012, at 1:52 PM, Per Andersson (via Magnolia Forums) wrote: > Hi, > > I have a spring webflow (SWF) with - let's say 5 steps. A new user enters the > webpage and completes the first 2 steps but then receives a phone call, thus > leaving the computer for ~30 minutes. The problem is that the http-session > has expired and only blank html is returned from the component if the user > tries to continue. This is unfortunately a bi-effect of how magnolia > integrates spring webflow. > > What happens is that a new session is created by the application/spring but > since an "executionKey" is supplied it tries to resume the execution. (see: > org.springframework.webflow.executor.FlowExecutorImpl#resumeExecution). It > eventually results in the > org.springframework.webflow.execution.repository.NoSuchFlowExecutionException > exception being thrown. This in turn results in the method > org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#handleFlowException > being called. As you can see here it tries to call perform a redirect which > is impossible in this stage because the response is already committed thus > resulting in an empty result. > > What I am hopping to accomplish is to view a "your session has expired, > please restart the webflow by pressing the button below" page. Have anyone > here tried to do the same thing? Anyone have any suggestions? > > Best regards! > Per Andersson > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=ebbba20b-6cfc-457c-9f8c-bd5f4c3ae86a > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
