On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> a couple of ways
>
> like you said have a dummy homepage, but use restartresponse exception to
> redirect to another page
>
Haven't try this one, thanks.

> or override gethomepageclass in application and return a different one based
> on the loggedin user <-- not sure if that will work very well, but worth a
> try
>
Are you mean something like

    public Class<? extends WebPage> getHomePage() {
        if(getRequestCycle().getSession().getUser().isAdmin())
            return Admin.class;
        else
            return User.class;
    }

If yes then I tried, but this is not work as expected, always just
return first class for first request

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to