Hi,

 

I'm trying to implement a login page using VLib's mechanism so I implemented
PageValidationListener in my page's superclass with the following:

 

public void pageValidate(PageEvent event) {

   if (!isUserLoggedIn()) {

      LoginPage login = getLoginPage();

      login.setCallback(new PageCallback(this));

      throw new PageRedirectException(login);

   }

}

 

Very simple. Actually looks just like the VLib example, however I'm getting
the following exception before I get to the login page:

 

A validate cycle during page activation was detected: LoginPage; LoginPage.

 

Anyone knows what it means and how to fix it?

 

I even tried using the PageBeginRenderListener instead but what happens is
the PageRedirectException actually gets thrown! It's not caught by tapestry
and the page is not redirected. Any ideas?

 

Thanks

Denis

Reply via email to