ohhhh, i figured wicket also keeps the page from where the ajax call was initiated somewhere. that's why i thought i was just doing something wrong that i didn't get anything useful in page expired. sorry, i should first check wicket code before wasting somebody's time.
thank you very much, cookies [implemented by me] it is. On Thu, Nov 6, 2008 at 1:37 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > that only works for normal requests because the requested url is the > one from browser's address bar. when you issue an ajax request wicket > doesnt know what url is in browser's address bar, it only knows the > non-bookmarkable ajax url that was invoked. > > -igor > > On Thu, Nov 6, 2008 at 8:33 AM, Cristi Manole <[EMAIL PROTECTED]> > wrote: > > thanks for your response. > > > > but... why is this handled differently (trying to call some "ajax") than > > requesting a regular page ? (like a bookmarkable page). i don't think > wicket > > internally uses cookies to redirect on continuetooriginaldestination. i > > might be wrong. > > > > i mean, if the user is on a page, i stop-restart the server, the user > > requests a bookmarkable page, he won't be redirected to pageexpired but > to > > the login page where he logs in and then continuetooriginaldestination > (the > > page he requested). Works like a charm. I cannot have the same on any > type > > of call? > > > > Maybe i'm asking a stupid question, but i'd like to understand :). > > > > Thank you, > > Cristi Manole > > > > On Thu, Nov 6, 2008 at 1:15 PM, Igor Vaynberg <[EMAIL PROTECTED] > >wrote: > > > >> you need to store a bookmarkable url that the user should be > >> redirected to. then your pageexpirederrorpage can check for that url > >> and redirect to it instead. > >> > >> since the session is gone you cant store the url there, so i would > >> suggest storing it in a cookie. > >> > >> -igor > >> > >> On Wed, Nov 5, 2008 at 6:03 PM, Cristi Manole <[EMAIL PROTECTED]> > >> wrote: > >> > Hello, > >> > > >> > Consider a user who is on a modal window and his session expires. When > he > >> > tries to do something he will be redirected to the "page expired" > page. > >> > > >> > Is it possible that after he logs in to be redirected to the page from > >> where > >> > he opened the modal window? Something like what > >> > continuetooriginaldestination does? > >> > > >> > I can see that in the implementation I have the information about the > >> last > >> > page he was on is lost when instantiating "page expired" > >> > > >> > If the user is on a regular page, if I take the server down and put it > up > >> > again, when he tries to get to some other page, he will be redirected > to > >> > login, log again and correctly be redirected to where he wanted to go. > No > >> > page expired. How can I have this exact same functionality? > >> > > >> > Thank you in advance, > >> > Cristi Manole > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >