[Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Ingram Chen
All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, wecheck 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

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Gwyn Evans
I haven't tried it, but I wonder if something like mountBookmarkablePage(/login, LoginPage.class); in your Application instance would give what you want? Note, it's probably a bad idea to try duplicate 'real' pages/folders such as / or /app! Having said that though, I'd have thought youd be

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Johan Compagner
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

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Ingram Chen
Thanks for fast reply!If this is feasible I will create a RFE for this change. hope we'll have this feature next release :-)On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Jean-Baptiste Quenot
* Johan Compagner: 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

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Johan Compagner
No we are marking the PageMap as dirtyand that is the case:interceptContinuationURL = cycle.getRequest().getURL();that field of pagemap is updated...johan On 8/11/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Johan Compagner: Maybe we should also make redirecting to a class:final void

Re: [Wicket-user] Pretty URL for login page ?

2006-08-11 Thread Jean-Baptiste Quenot
* Johan Compagner: Please make a RFE I created a patch because I need it too: See http://sourceforge.net/tracker/index.php?func=detailaid=1538810group_id=119783atid=684977 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/