diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfView.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfView.java index 10c9962b..2257e1a0 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfView.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfView.java @@ -115,8 +115,7 @@ public class JsfView implements View { } public Object getUserEventState() { - // Set the temporary UIViewRoot state in Flash for the redirect, regardless of whether the lifecycle - // executed or not (i.e., it's still necessary when starting a flow and rendering a new view instance) + // Set the temporary UIViewRoot state so that it will be available across the redirect return new ViewRootHolder(getViewRoot()); } diff --git a/spring-faces/src/test/java/org/springframework/faces/webflow/JsfViewTests.java b/spring-faces/src/test/java/org/springframework/faces/webflow/JsfViewTests.java index 1b905eaa..f150f5a8 100644 --- a/spring-faces/src/test/java/org/springframework/faces/webflow/JsfViewTests.java +++ b/spring-faces/src/test/java/org/springframework/faces/webflow/JsfViewTests.java @@ -212,7 +212,7 @@ public class JsfViewTests extends TestCase { JsfView createdView = new JsfView(new UIViewRoot(), jsfMock.lifecycle(), context); - assertFalse("No user ever should be queued", createdView.userEventQueued()); + assertFalse("No user event should be queued", createdView.userEventQueued()); } public final void testUserEventQueued_FormSubmitted() {