[Seaside] Seaside sessions and ajax
ssastre at seaswork.com
Tue Dec 4 01:05:22 UTC 2007
Hi Lukas, all,
I wonder again about the backbutton and ajax. How far or near we are
of making the user agent's back button and Seaside continuations magic to
work with updaters?
If I want to help to achieve that where would be a place to start?
What readings do you have to suggest?
> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
> de Lukas Renggli
> Enviado el: Viernes, 18 de Mayo de 2007 14:18
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] Seaside sessions and ajax
> > I found that it handles differently, not like a regular
> page navigation.
> > For instance - continuation is not changing.
> Yes, AJAX handlers are executed (rendered) exactly the same
> way as a callback would. This means it always evaluates the
> continuation of the full page refresh, leading to several
> very subtle problems.
> > And i have a problem with sessions: when session expires,
> by default
> > we redirect page to show login page. But with ajax its just
> returns an
> > empty result, rendering updated page parts empty. How i can handle
> > session expiration with ajax correctly?
> It does not return an empty result, but an error response. As
> you can see in WAApplication>>#handleExpiredRequest: and its
> super implementation WARegistry>>#handleExpiredRequest:. This
> allows you to catch this case in the error handler
> #onFailure: of SUAjax (for one particular AJAX handler) or
> SUResponders (for all AJAX handlers).
> > Also, i would like to make continuations updating for ajax, so any
> > user action regardless ajaxed or not with have new continuation id.
> > How this can be done?
> This is a thing on the to-do list of Seaside 2.8. Another
> related problem is that the backtracking doesn't work (mildly
> expressed) with AJAX. If you or anybody else has an idea
> about a possible solution to these problem I would be glad to
> hear. So far I couldn't come up with a nice solution myself ...
> Lukas Renggli
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the seaside