Yes, from what I understand persist is just to keep value between
request. so every-time you request the page the object is in this
case recreated.
If you want to keep this object across a session you need ASO (see T5
doc on persistence).
You can also (but will not be kept a session level) perform a test in
your class to instantiate only once the object and keep it for the
page or request only.
SP
On Apr 9, 2007, at 3:34 AM, Patrick Moore wrote:
Hi there --
does anyone have some thoughts on why:
@Persist
@InitialValue("new java.util.HashSet()")
public abstract Set<Long> getFollowUpMessages();
public abstract void setFollowUpMessages(Set<Long> set);
keeps on resetting the set to a new HashSet between http requests?
It looks like according to the @Persist documentation this is the
correct
way to set an initial value if there is no value already in the
session. But
it seems not to be the case...
-Pat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]