myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r801080 - /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java
Date Wed, 05 Aug 2009 07:39:40 GMT
Author: matzew
Date: Wed Aug  5 07:39:40 2009
New Revision: 801080

URL: http://svn.apache.org/viewvc?rev=801080&view=rev
Log:
TRINIDAD-1545 - PPR Triggers fail to fire for more than one stamp of the same component

Thanks to Max Starets for his patch!

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java?rev=801080&r1=801079&r2=801080&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java
(original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java
Wed Aug  5 07:39:40 2009
@@ -787,8 +787,7 @@
     return lifetimeObj.intValue();
   }
 
-
-  private void _addTargets(Object key)
+  private void _addTargets(UIComponent key)
   {
     Map<UIComponent, Set<UIComponent>> pl = _getPartialListeners();
     Set<UIComponent> listeners = pl.get(key);
@@ -804,6 +803,11 @@
         // listening on it also.
         partialUpdateNotify(listener);
       }
+      
+      // TRINIDAD-1545
+      // Re-add listeners to the map to accommodate partial targets for different stamps
of 
+      // the same component
+      pl.put(key, listeners);
     }
   }
 



Mime
View raw message