Your MyProtectedPage should implement PageValidateListener. Move this
logic into the corresponding pageValidate(PageEvent) method.
Paul
Scott F. Walter wrote:
I am having a problem with going back to a login page after a session
has timed out. I have a page called MyProtectedPage that all my pages
extend from and MyProtectedPage has the following method:
public void pageBeginRender(PageEvent event) {
super.pageBeginRender(event); if(getVisit()==null
|| !getVisit().isLoggedIn()) {
LoginPage loginPage = (LoginPage)
getRequestCycle().getPage("Login");
throw new PageRedirectException(loginPage);
} }
The problem is that when I do have a session timeout I get the
standard Tapestry exception page indicating an exception has occured
instead of going to my login page. What exactly am I do wrong????
thank, scott.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]