hi everyone

I'm starting using Tapestry 5.0.4 and i'm tying to implement an
authentication filter.


In some tapestry 4 samples, code was :

public abstract class AuthenticatedPage implements PageValidateListener {

       public void pageValidate(PageEvent event) {

               if (!isSessionBeanExist() || getSessionBean().getUid()==-1) {
                       Login loginPage = (Login)getRequestCycle()

                .getPage("Login");

                       loginPage.setCallback(new PageCallback(this));

                       throw new PageRedirectException(loginPage);
               }
       }
}

public class ProjectList extends AuthenticatedPage {
 [...]
}

but i can't find the way to do it in tapestry 5.

thanks in advance for help, and sorry for my bad english ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to