add a ApplicationStateManager field to the service
private ApplicationStateManager appStateMgr;
public void setAppStateMgr(ApplicationStateManager value)
{
appStateMgr = value;
}
public ApplicationStateManager getAppStateMgr()
{
return appStateMgr;
}
and inject the appStateMgr to the service through hivemind:
<service-point id="ImageTextCodeService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="d2m.adds.web.services.ImageTextCodeService">
<set-object property="linkFactory"
value="service:tapestry.url.LinkFactory"/>
<set-object property="appStateMgr"
value="service:tapestry.state.ApplicationStateManager"/>
</construct>
</invoke-factory>
</service-point>
now you can get the aso object in the service:
public SessionObject getSession()
{
return (SessionObject) getAppStateMgr().get("registration-data");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]