In Tapestry 4 with Hivemind you could scope an ASO (session, global), which I found very useful, I have noticed in T5 ASO's are session scoped, how do you scope a service/class across all sessions in T5?, I guess just use it as static?

Peter

Robert A. Decker wrote:
In the docs they use the example:
public class MyPage
{
@ApplicationState
private MyState _myState;

. . .
}
and:
"Any other component or page that declares a field of the same type, regardless of name, and marks it with the ApplicationState annotation will share the same value. It's that simple."

Do people generally use a collection class for MyState and when needed, pull out the collection and then their variable? Or do you have multiple ApplicationState variables in your session and pull them out by name?

How do you keep track of everything you have in your session? Maybe a custom Session class? Something like:

public class MyPage
{
@ApplicationState
private Session _mySession
...
}

public class Session
{
DataContext sessionDataContext;
User loggedInUser;
...
}

Thanks,
R

---------------------------------------------------------------------
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]

Reply via email to