Thanks for response.
I've added issue: https://issues.apache.org/jira/browse/TAPESTRY-2740
Your workaround works. Thanks!
--- workaround ---
@InjectObject("service:tapestry.state.SessionScopeManager")
public abstract StateObjectPersistenceManager getStateManager();
public void someMethod() {
I forgot that calling getFooId() will create the "foo" ASO
and so the workaround will never work...
I guess you could inject SessionScopeManager and call
sessionScopeManager.exists("foo") for another workaround
2009/6/21 Andreas Andreou :
> Setting fooId to null DOES remove the object from sessio
Setting fooId to null DOES remove the object from session, but
judging from the sources of ApplicationStateManagerImpl (its
_stateObjects never removes items),
the stateFlag will continue to return true...
This happens 'cause the map that holdes the ASOs still has the
"foo" key (that now points to
Hi!
I'm using Tapestry 4.1.
How to remove previously created ASO from session, so that @InjectStateFlag
could return false again?
Sample code (assume that ASO "foo" is already set, so the flag returns
TRUE):
@InjectState("foo")
public abstract Long getFooId();
public abstract void setFooId(Long i