myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r632547 - /myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
Date Sat, 01 Mar 2008 04:47:59 GMT
Author: lu4242
Date: Fri Feb 29 20:47:56 2008
New Revision: 632547

URL: http://svn.apache.org/viewvc?rev=632547&view=rev
Log:
fixes MYFACES-1828 code that allow perform custom tasks before and after set binding in 1.2
does not work

Modified:
    myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java

Modified: myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java?rev=632547&r1=632546&r2=632547&view=diff
==============================================================================
--- myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
(original)
+++ myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
Fri Feb 29 20:47:56 2008
@@ -39,8 +39,7 @@
 
     /**
      * Walk the component tree, executing any component-bindings to reattach
-     * components to their backing beans. Also, any UIInput component is
-     * marked as Valid.
+     * components to their backing beans. 
      * <p>
      *  Note that this method effectively breaks encapsulation; instead of
      *  asking each component to update itself and its children, this
@@ -86,10 +85,11 @@
                     binding.setValue(facesContext.getELContext(), component);
                 }
 
-                if (component instanceof UIInput)
-                {
-                    ((UIInput)component).setValid(true);
-                }
+                //This part is not necessary on JSF 1.2
+                //if (component instanceof UIInput)
+                //{
+                //    ((UIInput)component).setValid(true);
+                //}
 
                 recursivelyHandleComponentReferencesAndSetValid(facesContext, component);
             }



Mime
View raw message