You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/11/04 20:33:47 UTC

svn commit: r832851 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java

Author: lu4242
Date: Wed Nov  4 19:33:46 2009
New Revision: 832851

URL: http://svn.apache.org/viewvc?rev=832851&view=rev
Log:
enclose popComponentFromEL in a finally block

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=832851&r1=832850&r2=832851&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java Wed Nov  4 19:33:46 2009
@@ -1128,14 +1128,19 @@
             // Call UIComponent.pushComponentToEL(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
             pushComponentToEL(context, this);
 
-            // Call the processValidators() method of all facets and children of this UIComponent, in the order
-            // determined by a call to getFacetsAndChildren().
-            for (Iterator<UIComponent> it = getFacetsAndChildren(); it.hasNext();)
+            try
             {
-                it.next().processValidators(context);
+                // Call the processValidators() method of all facets and children of this UIComponent, in the order
+                // determined by a call to getFacetsAndChildren().
+                for (Iterator<UIComponent> it = getFacetsAndChildren(); it.hasNext();)
+                {
+                    it.next().processValidators(context);
+                }
+            }
+            finally
+            {
+                popComponentFromEL(context);
             }
-            
-            popComponentFromEL(context);
         }
     }