Mounting like Gwyn proposed doesn't work either.
The problem is that we always redirect to an instance because of the pagemap method:

    final void redirectToInterceptPage(final Page page)
    {
        // Get the request cycle
        final RequestCycle cycle = RequestCycle.get();

        // The intercept continuation URL should be saved exactly as the
        // original request specified.
        interceptContinuationURL = cycle.getRequest ().getURL();

        // Page map is dirty
        session.dirtyPageMap(this);

        // Redirect to the page
        cycle.setRedirect(true);
        cycle.setResponsePage(page);
    }

Maybe we should also make redirecting to a class:

    final void redirectToInterceptPage(final Class pageClass)
    {
        // Get the request cycle
        final RequestCycle cycle = RequestCycle.get();

        // The intercept continuation URL should be saved exactly as the
        // original request specified.
        interceptContinuationURL = cycle.getRequest().getURL();

        // Page map is dirty
        session.dirtyPageMap(this);

        // Redirect to the page
        cycle.setRedirect(true);
        cycle.setResponsePage(pageClass);
    }

then you will get a bookmarkable url or a mount url.

johan


On 8/11/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
All,

   This small problem annoys us very long time:

When I first reach http://mycompany.com, with normal configuration, we
check if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)
to redirect  user to Login page.
 
This work perfectly but the URL become unstable link like:

http://mycompany.com/app?wicket:interface=:1 ::

Normally user want to bookmark login page, but in this case such URL does not work at all.

Is there any way to fix this 'problem' ? It would be better I could redirect to root context like
http://mycompany.com/ or http://mycompany.com/app

Thanks in advance!

--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen

-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to