Results 1 to 3 of 3

Thread: Temporal decision of user's externalContext.recordResponseComplete() problem

  1. #1
    Join Date
    Sep 2008
    Posts
    3

    Post Temporal decision of user's externalContext.recordResponseComplete() problem

    Hi, after SWF 2.0.6 update I received a problem. When I try to download file from my application at the first request I receive my file, but every second request execute reload of application's page. I tried to debug and I found, that second request do not execute user's task, and only reload page, because some variables remained in scope and launch rerendering. As I understand fixing SWF-1089 solve this problem, but as a temporary decision, I created
    Code:
    public class FixResponseCompleteExecutionListener extends FlowExecutionListenerAdapter{
    	@Override
    	public void requestProcessed(RequestContext context) {
    		if (context.getExternalContext().isResponseComplete()){
    			context.getFlashScope().remove("flowRenderResponse");
    		}
    	}
    }
    and registered it as


    Code:
    <webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry">
    	<webflow:flow-execution-listeners>
    		...
    		<webflow:listener ref="fixResponseCompleteExecutionListener" />
    		...
    	</webflow:flow-execution-listeners>
    </webflow:flow-executor>
    <bean id="fixResponseCompleteExecutionListener" class="web.listener.FixResponseCompleteExecutionListener"/>

    flowRenderResponse - name of one of boolean variables which are responsible for executing user's operation or executing rerendering. I stole it from org.springframework.faces.webflow.FlowFacesContext .

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Yes this has been reported and we are addressing it in 2.0.7. See roadmap for flash scope issue and watch that ticket. We'd appreciate testing of a nightly build once the issue is fixed next week.

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Sep 2008
    Posts
    3

    Default

    Ok. I will wait bug fix.
    Last edited by Dmak; Apr 6th, 2009 at 08:26 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •