Is there any chance that I can use SessionState outside the scope of page? That is because I want to logically group the same function in a class e.g. security; so the function authenticate() may not be just used by the Login page. For instance,
right now: client -> Login.tml -> Login.java page -> LoginService -> -(SessionState)-> IAccount [at the moment it does not work because LoginService does exist in the page] in the future: client -> GUI -> LoginService -> IAccount Or is there any other way to achieve it? I appreciate any suggestion. Thank you. --- On Fri, 22/5/09, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > From: Thiago H. de Paula Figueiredo <thiag...@gmail.com> > Subject: Re: [T5] Error obtaining ApplicationState object > To: "Tapestry users" <users@tapestry.apache.org> > Date: Friday, 22 May, 2009, 6:15 PM > Em Fri, 22 May 2009 13:14:24 -0300, > Neo Anderson <javadeveloper...@yahoo.co.uk> > escreveu: > > > Hi > > Hi! > > > public class LoginService{ > > > > @ApplicationState > > private IAccount account; > > You can't use @ApplicationState (deprecated because of > misleading name, now use @SessionState instead, works > exactly the same) in services, just in pages, components and > mixins. Use the ApplicationStateManager service instead. > > --Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org