From e1cbf8de97f94606e6de401a3216a152119ebdc4 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Tue, 14 Apr 2009 13:31:55 +0000 Subject: [PATCH] Cleanup --- .../main/java/org/springframework/faces/webflow/JsfView.java | 3 +-- .../java/org/springframework/faces/webflow/JsfViewTests.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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() {