From 993bc67ac824d6bb5add0421b2d9d80869339cc9 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Fri, 13 Mar 2009 14:54:14 +0000 Subject: [PATCH] SWF-1025 - 'valid' property of input components gets lost before JSF render phase in portlet --- .../org/springframework/faces/webflow/JsfViewFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java index 0e2ad221..9b7c5880 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java @@ -163,7 +163,9 @@ public class JsfViewFactory implements ViewFactory { * @param component */ private void processTree(FacesContext context, UIComponent component) { - if (component instanceof EditableValueHolder) { + // Only resetting the valid flag in the RESTORE_VIEW phase, + // not during RENDER_RESPONSE + if (!context.getRenderResponse() && component instanceof EditableValueHolder) { ((EditableValueHolder) component).setValid(true); } ValueBinding binding = component.getValueBinding("binding");