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 2011/02/18 04:00:19 UTC

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

Author: lu4242
Date: Fri Feb 18 03:00:18 2011
New Revision: 1071870

URL: http://svn.apache.org/viewvc?rev=1071870&view=rev
Log:
MYFACES-3047 Component resources disappear after page reload

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

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java?rev=1071870&r1=1071869&r2=1071870&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java Fri Feb 18 03:00:18 2011
@@ -567,7 +567,11 @@ public class UIViewRoot extends UICompon
             // From jsr-314-open list it was made clear this facet is transient,
             // because all component resources does not change its inner state between
             // requests
-            facet.setTransient(true);
+            //
+            // MYFACES-3047 It was found that resources added using ResourceDependency annotation
+            // requires to be saved and restored, so it is not possible to mark this facets
+            // as transient. The previous statement is true only for PSS.
+            //facet.setTransient(true);
 
             // Add the facet to the facets Map using target as the key
             getFacets().put(target, facet);