You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/03/22 10:57:11 UTC

svn commit: r387815 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java

Author: mmarinschek
Date: Wed Mar 22 01:57:10 2006
New Revision: 387815

URL: http://svn.apache.org/viewcvs?rev=387815&view=rev
Log:
fixed executeOn for nested tables

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java?rev=387815&r1=387814&r2=387815&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/UIComponentPerspective.java Wed Mar 22 01:57:10 2006
@@ -80,7 +80,17 @@
     public Object executeOn(FacesContext context, ExecuteOnCallback callback)
     {
         setupPerspective();
-        Object retVal = callback.execute(context, delegate);
+
+        Object retVal;
+
+        if(delegate instanceof UIComponentPerspective)
+        {
+            retVal = ((UIComponentPerspective) delegate).executeOn(context, callback);
+        }
+        else
+        {
+            retVal = callback.execute(context, delegate);
+        }
         teardownPerspective();
         return retVal;
     }