You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ja...@apache.org on 2010/08/24 12:21:41 UTC

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

Author: jakobk
Date: Tue Aug 24 10:21:41 2010
New Revision: 988468

URL: http://svn.apache.org/viewvc?rev=988468&view=rev
Log:
MYFACES-2886 UIData: push and pop row component to and from EL during broadcast() (thanks to Martin Kočí for this patch)

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=988468&r1=988467&r2=988468&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 Tue Aug 24 10:21:41 2010
@@ -747,14 +747,18 @@ public class UIData extends UIComponentB
         {
             FacesEvent originalEvent = ((FacesEventWrapper) event).getWrappedFacesEvent();
             int eventRowIndex = ((FacesEventWrapper) event).getRowIndex();
-            int currentRowIndex = getRowIndex();
+            final int currentRowIndex = getRowIndex();
+            UIComponent source = originalEvent.getComponent();
+            
             setRowIndex(eventRowIndex);
+            source.pushComponentToEL(getFacesContext(), source);
             try
             {
-                originalEvent.getComponent().broadcast(originalEvent);
+                source.broadcast(originalEvent);
             }
             finally
             {
+                source.popComponentFromEL(getFacesContext());
                 setRowIndex(currentRowIndex);
             }
         }