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 2010/04/29 08:37:32 UTC

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

Author: lu4242
Date: Thu Apr 29 06:37:32 2010
New Revision: 939214

URL: http://svn.apache.org/viewvc?rev=939214&view=rev
Log:
MYFACES-2685 Cannot call invokeOnComponent on UIColumn without rowIndex

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

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java?rev=939214&r1=939213&r2=939214&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java Thu Apr 29 06:37:32 2010
@@ -386,8 +386,18 @@ public class UIData extends UIComponentB
                 for (Iterator<UIComponent> itChildren = this.getChildren().iterator();
                         !returnValue && itChildren.hasNext();)
                 {
+                    UIComponent child = itChildren.next();
+                    if (child instanceof UIColumn && clientId.equals(child.getClientId(context)))
+                    {
+                        try {
+                            callback.invokeContextCallback(context, child);
+                        } catch (Exception e) {
+                            throw new FacesException(e);
+                        }
+                        returnValue = true;
+                    }
                     // process the child's facets
-                    for (Iterator<UIComponent> itChildFacets = itChildren.next().getFacets().values().iterator(); 
+                    for (Iterator<UIComponent> itChildFacets = child.getFacets().values().iterator(); 
                             !returnValue && itChildFacets.hasNext();)
                     {
                         //recursive call to find the component