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);
}
Show replies by date