Announcement Announcement Module
Collapse
No announcement yet.
_flowExecutionKey not resolved after a null outcome Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • _flowExecutionKey not resolved after a null outcome

    I'm using spring-webflow-1.0-rc2-20060527041019 with JSF (Myfaces). When I use a null outcome (in a dataTable pagination), the view is rendered correctly except the _flowExecutionKey which remains blank.

    Any idea ?
    Samuel

  • #2
    By overriding FlowPhaseListener, the problem can be fixed :

    Code:
    public class FlowPhaseListener extends
    		org.springframework.webflow.executor.jsf.FlowPhaseListener {
    
    	protected void prepareResponse(JsfExternalContext context, FlowExecutionHolder holder) {
    		super.prepareResponse(context, holder);
    		if (holder.getViewSelection() == null) {
    			Map requestMap = context.getFacesContext().getExternalContext().getRequestMap();
    			getArgumentExtractor().put(holder.getFlowExecutionKey(), requestMap);
    			getArgumentExtractor().put(holder.getFlowExecution(), requestMap);			
    		} 
    	}	
    	
    }
    It may be useful to handle that null case in the original FlowPhaseListener.

    Comment

    Working...
    X