Fix for SWF-656. Needed to call FacesContext.renderResponse from the FlowActionListener.
This commit is contained in:
@@ -68,5 +68,6 @@ public class FlowActionListener implements ActionListener {
|
||||
logger.debug("No action event detected");
|
||||
context.getExternalContext().getRequestMap().remove(JsfView.EVENT_KEY);
|
||||
}
|
||||
context.renderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ public class FlowActionListenerTests extends TestCase {
|
||||
JsfView.EVENT_KEY));
|
||||
assertEquals("The event should be " + outcome, outcome, jsfMock.externalContext().getRequestMap().get(
|
||||
JsfView.EVENT_KEY));
|
||||
assertTrue("Render response flag should be set", jsfMock.facesContext().getRenderResponse());
|
||||
}
|
||||
|
||||
public final void testProcessAction_NullOutcome() {
|
||||
@@ -66,6 +67,7 @@ public class FlowActionListenerTests extends TestCase {
|
||||
|
||||
assertFalse("An unexpected event was signaled", jsfMock.externalContext().getRequestMap().containsKey(
|
||||
JsfView.EVENT_KEY));
|
||||
assertTrue("Render response flag should be set", jsfMock.facesContext().getRenderResponse());
|
||||
}
|
||||
|
||||
private class MethodBindingStub extends MethodBinding {
|
||||
|
||||
Reference in New Issue
Block a user