myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r632548 - /myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
Date Sat, 01 Mar 2008 04:48:52 GMT
Author: lu4242
Date: Fri Feb 29 20:48:51 2008
New Revision: 632548

URL: http://svn.apache.org/viewvc?rev=632548&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/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java

Modified: myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java?rev=632548&r1=632547&r2=632548&view=diff
==============================================================================
--- myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
(original)
+++ myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java
Fri Feb 29 20:48:51 2008
@@ -33,6 +33,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
 import org.apache.myfaces.shared_impl.util.Assert;
+import org.apache.myfaces.shared_impl.util.RestoreStateUtils;
 
 /**
  * @author Mathias Broekelmann (latest modification by $Author$)
@@ -53,11 +54,18 @@
         {
             binding.setValue(facesContext.getELContext(), component);
         }
+        
+        //This part is for make compatibility with t:aliasBean, because
+        //this components has its own code before and after binding is 
+        //set for child components.
+        RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(facesContext,component);
 
-        for (Iterator<UIComponent> iter = component.getFacetsAndChildren(); iter.hasNext();)
-        {
-            processComponentBinding(facesContext, iter.next());
-        }
+        //The required behavior for the spec is call recursively this method
+        //for walk the component tree. 
+        //for (Iterator<UIComponent> iter = component.getFacetsAndChildren(); iter.hasNext();)
+        //{
+        //    processComponentBinding(facesContext, iter.next());
+        //}
     }
 
     public String calculateViewId(FacesContext facesContext)



Mime
View raw message