myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1430841 - /myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java
Date Wed, 09 Jan 2013 13:14:18 GMT
Author: werpu
Date: Wed Jan  9 13:14:18 2013
New Revision: 1430841

URL: http://svn.apache.org/viewvc?rev=1430841&view=rev
Log:
TRINIDAD-2303


Modified:
    myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java

Modified: myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java?rev=1430841&r1=1430840&r2=1430841&view=diff
==============================================================================
--- myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java
(original)
+++ myfaces/trinidad/branches/trinidad-2.0.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/StateManagerImpl.java
Wed Jan  9 13:14:18 2013
@@ -27,6 +27,7 @@ import java.io.ObjectOutputStream;
 import java.io.Serializable;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -1432,6 +1433,13 @@ public class StateManagerImpl extends St
         List<UIComponent> temp = new ArrayList<UIComponent>(root.getChildCount());
         temp.addAll(root.getChildren());
         newRoot.getChildren().addAll(temp);
+        // copy facets
+        if (root.getFacetCount() > 0)
+        {
+            Map<String,UIComponent> facets = new HashMap<String, UIComponent>(root.getFacetCount());
+            facets.putAll(root.getFacets());
+            newRoot.getFacets().putAll(facets);
+        }
         return newRoot;
       }
 



Mime
View raw message