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]

Reply via email to