I misunderstood what was going on here. I thought you were injecting
the ApplicationStateManager into a Tapestry page.
So: how do you inject the ApplicationStateManager into a Tapestry page?
I see that Tapestry's StateBindingFactory gets a reference to the
ApplicationStateManager with the line
<set-object property="applicationStateManager"
value="infrastructure:applicationStateManager"/>
in tapestry.bindings.xml.
I don't understand why this isn't documented...am I the only one who
wants to access Application State Objects in the Java class?
Any help would be appreciated!
Thanks,
Travis
On Sep 16, 2005, at 9:21, Travis McLeskey wrote:
For those of us new to HiveMind, where does the <set-service> element
need to go in the HiveMind config file? I'm just trying to access my
ASO in java code.
Thanks,
Travis
Pete <pertl <at> gmx.org> writes:
> does somebody know how to inject 'myState' into the marked
'MyFilter'
> property 'injectedState' ????
Try:
<set-service
property="appStateMgr"
value="tapestry.state.ApplicationStateManager"/>
class MyFilter {
ApplicationStateManager appStateMgr;
MyState getInjectedState() {
return (MyState)appStateMgr.get("myState");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]