This content has been marked as final.
Show 4 replies
-
1. Re: Resetting factory object
mokua Apr 11, 2008 1:40 PM (in response to jbeaken)try removing
trackCount
from the Conversation, before re-settingprivate void resetTrackCount() { Contexts.getConversationContext().put("trackCount",null); Events.instance().raiseEvent("resetCounts"); }
Maybe there is a better way?
-
2. Re: Resetting factory object
jbeaken Apr 11, 2008 2:05 PM (in response to jbeaken)That's exactly what I have done, but I don't raise the event as the factory is called from the jsf layer.
But this seams such a messy way of achieving a common problem!?
-
3. Re: Resetting factory object
pmuir Apr 14, 2008 12:17 AM (in response to jbeaken)This is the correct approach.
-
4. Re: Resetting factory object
raoul.schmidiger Mar 3, 2009 6:36 PM (in response to jbeaken)It is ...set:
Contexts.getConversationContext().set(
trackCount
,null);not put:
Contexts.getConversationContext().put(
trackCount
,null);but I guess people figured out.