Mazhar, Osman (Home Office <mazharo <at> lls.org> writes:

> 
> I am trying to inject/set a state object, defined in the same xml file, into
> a custom engine service as follows:
> 
> <set-object property="myObject" value="state-object:myObject"/>

Try:

<set-object
  property="appStateMgr"
  value="service:tapestry.state.ApplicationStateManager"/>

Then:

class YourCustomEngine ... {
  Object getMyObject() {
    return getAppStateMgr().get("myObject");
  }
}

However, by default it's quite difficult to use a hivemind service
as the engine because there is general no particular reason to do 
that.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to