in your servlet filter you will have to check for Wicket-Ajax header and if it is present return a properly formatted ajax-response that contains javascript to redirect to your login page.
-igor On Tue, Dec 1, 2009 at 1:01 PM, Bernard Lupin <beal6...@yahoo.fr> wrote: > > And I'm using wicket version 1.4.3... > > > Bernard Lupin wrote: >> >> Hello, >> >> I also have a similar problem : when the session is over, debug shows me >> that all my Ajax links receive an html response with my login page, >> instead of an xml response, because I have a servlet filter for that. >> So wicket says in the wicket ajax debug window "ERROR: >> Wicket.Ajax.Call.failure: Error while parsing response: Could not find >> root <ajax-response> element", and for users nothing happens when clicking >> on AjaxLink's. >> >> Is it a way to solve this please ? >> Regards, >> Bernard >> >> >> --- En date de : Ven 20.11.09, Carlo Camerino <carlo.camer...@gmail.com> a >> écrit : >> >>> De: Carlo Camerino <carlo.camer...@gmail.com> >>> Objet: Re: Session timeout - AJAX-enabled controls >>> À: users@wicket.apache.org >>> Date: Vendredi 20 Novembre 2009, 3h44 >>> yes we also have this prob lem.... >>> For example i use a wicket in >>> dicating ajax button in our logi n page. If thne user doesn >>> t click a >>> link that moves a page he will not be able to k now that >>> the session >>> has i ndeed expired. The screen o ly shows the rotating >>> image but >>> nothing happens. but if i use a normal submit li nk, >>> im immeddiately >>> redirected.. >>> Some clients didnt mind it bbut some clients do >>> >>> thanks >>> >>> On 11/20/09, Igor Vaynberg <igor.vaynb...@gmail.com> >>> wrote: >>> > afair any ajax interaction on an expired page causes >>> the same reaction >>> > as a non-ajax interaction - going to the page expired >>> page. open a bug >>> > with a quickstart if that is not the case. >>> > >>> > -igor >>> > >>> > 2009/11/19 David Matoušek <david.matou...@monetplus.cz>: >>> >> Hi, >>> >> I have a problem with ajax behavior, that i use to >>> fill various dropdowns >>> >> by >>> >> data from database. >>> >> When session expires(user was inactive), non-ajax >>> controls correctly >>> >> redirect me to some kind of Error page. Thats >>> correct. >>> >> Components that have defined ajax behavior to >>> update another components >>> >> don't redirect, and doesn't update another >>> components either. >>> >> Is that Wicket feature, or a bug? Can components >>> with ajax behaviors be >>> >> forced to redirect to error page on session expire >>> like non-ajax ones do? >>> >> Any suggestions? >>> >> >>> >> Thanks for reply >>> >> >>> >> David Matousek >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Tato zprava byla prohledana na vyskyt viru >>> >> a nebezpecneho obsahu antivirovym systemem >>> >> MailScanner a zda se byt cista. >>> >> >>> >> >>> >> >>> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> >> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >>> >> >>> > >>> > >>> --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> > For additional commands, e-mail: users-h...@wicket.apache.org >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Session-timeout---AJAX-enabled-controls-tp26422932p26598984.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org