You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2008/06/28 18:14:06 UTC

svn commit: r672543 - /myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java

Author: matzew
Date: Sat Jun 28 09:14:06 2008
New Revision: 672543

URL: http://svn.apache.org/viewvc?rev=672543&view=rev
Log:
TRINIDAD-1135 - Flush Cached Model for UIXCollection during broadcast
Thanks to Venkata for his patch.

Modified:
    myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java?rev=672543&r1=672542&r2=672543&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java (original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXCollection.java Sat Jun 28 09:14:06 2008
@@ -136,6 +136,12 @@
   public void broadcast(FacesEvent event)
     throws AbortProcessingException
   {
+    // If the UIXCollection component is used as a stamp of another collection component,
+    // we could be pointing to the wrong model based on the the last stamp state from 
+    // parent's decode/validate/update processing. Flush the cached model to get the correct model 
+    // based on the parent's currency
+    _flushCachedModel();
+    
     // For "TableRowEvents", set up the data before firing the
     // event to the actual component.
     if (event instanceof TableRowEvent)