Short of adding a filter in the web.xml, is there a way in tapestry 5 to selectively have certain pages validate user sessions? I'm trying to unobtrusively have pages redirect the user to log in before they view the page if their session timed out. Currently, I would need this functionality for the majority of my pages. There are a few pages that do not require authentication.
My current thinking is to have a base page class that all the pages requiring authentication would derive from. This base class would have an onEvent or BeforeSetup annotation on a common method that would check for authentication. I see a few problems with this: 1) If there is a way in T5 to do this, I'd rather not reinvent the wheel. 2) What if pages that don't currently require authentication will change to require authentication later on? This opens up a whole can of worms with class refactoring and reimplementation that could be easy or not. I'd rather it be configurable as to which page classes require authentication or not. Would another possible option for this be to use a service? I'm not quite sure how services play into the picture yet. I'm rather new to Tapestry / component design, so I'm not quite sure how this all works just yet. Thanks for all your help! -- View this message in context: http://www.nabble.com/T5%3A-User-validation-tf4602871.html#a13142634 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]