RequestCycle.detach does this;

getSession().cleanupFeedbackMessages();

that results in this:

       // If session scoped, rendered messages got indeed cleaned up, mark
the
       // session as dirty
       if (feedbackMessages.clear(RENDERED_SESSION_SCOPED_MESSAGES) > 0)
       {
           dirty();
       }

       feedbackMessages.clear(MESSAGES_FOR_COMPONENTS);

and then the last part. clear all feedbackmessages which have components...

this does mean that IF the session is used in another page from another
pagemap
we are clearing also the feedbackMessagges of that request.

i know it is not very likely that we will see that happening but it is
possible
that 2 threads are interacting with the same feedbackMessages now.

johan

Reply via email to