[seam-commits] Seam SVN: r9674 - trunk/src/main/org/jboss/seam/contexts.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Nov 28 02:44:23 EST 2008


Author: youngm
Date: 2008-11-28 02:44:23 -0500 (Fri, 28 Nov 2008)
New Revision: 9674

Modified:
   trunk/src/main/org/jboss/seam/contexts/ServerConversationContext.java
Log:
JBSEAM-3655 not caching @PerNestedConversation components

Modified: trunk/src/main/org/jboss/seam/contexts/ServerConversationContext.java
===================================================================
--- trunk/src/main/org/jboss/seam/contexts/ServerConversationContext.java	2008-11-27 19:50:43 UTC (rev 9673)
+++ trunk/src/main/org/jboss/seam/contexts/ServerConversationContext.java	2008-11-28 07:44:23 UTC (rev 9674)
@@ -87,7 +87,13 @@
    {
       if (!cache.containsKey(name))
       {
-         cache.put(name, resolveValue(name));
+          Object value = resolveValue(name);
+          //Don't cache the value of components that have @PerNestedConverstion
+          if(isPerNestedConversation(name))
+          {
+              return value;
+          }
+          cache.put(name, value);
       }
       return cache.get(name);
    }




More information about the seam-commits mailing list