[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Session in ServiceEncoder's?
From: Kaspar Fischer <fischerk () inf ! ethz ! ch>
Date: 2008-01-23 9:33:37
Message-ID: 659C90FF-4BC3-43D7-BCAC-A558B249137D () inf ! ethz ! ch
[Download RAW message or body]
This seems to work:
<service-point id="myencoder"
interface="org.apache.tapestry.engine.ServiceEncoder">
<invoke-factory>
<construct
class="org.myorg.tapestry.myproject.serviceencoders.DBObjectServiceEncod
er">
<set property="pageName" value="node" />
<set-object property="applicationStateManager"
value="service:tapestry.state.ApplicationStateManager" />
</construct>
</invoke-factory>
</service-point>
and in the service encoder class:
...
private ApplicationStateManager applicationStateManager;
...
public void setApplicationStateManager(ApplicationStateManager
applicationStateManager)
{
this.applicationStateManager = applicationStateManager;
}
...
... = (...) this.applicationStateManager.get("whatever you need");
...
Kaspar
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic