incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r434539 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java
Date Thu, 24 Aug 2006 22:06:48 GMT
Author: awiner
Date: Thu Aug 24 15:06:48 2006
New Revision: 434539

URL: http://svn.apache.org/viewvc?rev=434539&view=rev
Log:
Allow the application map to be writable during rendering - sometimes, a renderer incidentally
boots up an application-level subsystem on the fly.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java?rev=434539&r1=434538&r2=434539&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/trinidadinternal/renderkit/MFacesContext.java
Thu Aug 24 15:06:48 2006
@@ -285,9 +285,11 @@
     @Override
     public Map<String, Object> getApplicationMap()
     {
-      // Return an unmodifiable map - noone should be putting
-      // things into application scope during rendering.
-      return Collections.unmodifiableMap(_applicationMap);
+      // This used to be an unmodifiable map - but I ran into
+      // renderers that happened to be the first to lazily boot
+      // up a global system, which then cached values on the
+      // application map...
+      return _applicationMap;
     }
 
     @Override
@@ -303,4 +305,4 @@
     private final boolean _testMode;
   }
   private static final String _GLOBAL_MESSAGE = "org.apache.myfaces.trinidadinternal.renderkit.MFacesContext.GLOBAL_MESSAGE";
-}
\ No newline at end of file
+}



Mime
View raw message