What is the correct way to redirect to a login page from within a
constructor. This is wicket  1.3.5 and the code below just doesn't redirect.
All my pages inherit from AuthPage().

 public AuthPage() {
        super();
        add(new MainMenuPanel("mainmenu", this));
        add(new FeedbackPanel("feedback"));
        if (getUser() == null) {
            redirectToInterceptPage(new LoginPage());
        } else {
            authorized();
            add(new UserAdminPanel("adminpanel"));
        }
    }

-- 
Pieter Claassen
musmato.com

Reply via email to