SWF-1025 - 'valid' property of input components gets lost before JSF render phase in portlet

This commit is contained in:
Jeremy Grelle
2009-03-13 14:54:14 +00:00
parent c19ea1972f
commit 993bc67ac8

View File

@@ -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");