Hi All, I have a listener registered with my servlet container which adds users to the servlet context as they login (so i have a list of currently loged in active users). Depending on the user's settings I want to be able to set some values in @SessionState so that I can later use it across all pages.
The way I am doing it right now is - I have a BasePage.java from which all other pages are derived. So, the BasePage.onActivate method checks to see if these variables in the user session (@SessionState) object are null. if yes it sets it. But I fell this is not the right way to do it as the check happens everytime any page loads. I want to do it just once when the user logs in. Is there a way to access the @SessionState object from my listener class. Not sure it is possible because I cannot @Inject it as the listener object is not created by tapestry. What is the right way to do this? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-access-SessionState-at-the-listener-level-tp4591912p4591912.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org