This content has been marked as final.
Show 4 replies
-
1. Re: Resetting factory object
Richard Ombati Apr 11, 2008 1:40 PM (in response to John Smith)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
John Smith Apr 11, 2008 2:05 PM (in response to John Smith)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
Pete Muir Apr 14, 2008 12:17 AM (in response to John Smith)This is the correct approach.
-
4. Re: Resetting factory object
raoul schmidiger Mar 3, 2009 6:36 PM (in response to John Smith)It is ...set:
Contexts.getConversationContext().set(
trackCount
,null);not put:
Contexts.getConversationContext().put(
trackCount
,null);but I guess people figured out.