Announcement Announcement Module
Collapse
No announcement yet.
Temporal decision of user's externalContext.recordResponseComplete() problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Ok. I will wait bug fix.
      Last edited by Dmak; Apr 6th, 2009, 09:26 AM.

      Comment

      Working...
      X