On Fri, 10 Dec 2010 12:18:22 -0200, Dmitriy Vsekhvalnov <[email protected]> wrote:

Hi all, i'm slightly confused with @Persist("flash") and XHR requests.

Hi!

A flash persisted value is cleared when it's read from the session, something that happens once per request AFAIK. What you see it that AJAX requests are processed in one request, while non-AJAX action (including form submission) requests are handled in two (redirect-after-post, one for handling the action, another for rendering a response). I guess we need something like a "renderflash" persistence, that removes the object from the session after a render request, AJAX or not, is finished. Meanwhile, try setting your field to null in a @PageDetached method.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to