I was trying to retrieve the messages before they were placed into the
Session. I now am retrieving them in the page's onBeforeRender() method and
it seems to be working. Do you see any problems doing it this way?

> -----Original Message-----
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2008 7:06 PM
> To: users@wicket.apache.org
> Subject: Re: How and when to retrieve messages from Session
>
>
> feedback messages are not cleaned up until the end fo request, so you
> should be able to retrieve them...
>
> if you are doing this across pages make sure you call
> getsession().error(..) not just error(..)
>
> -igor
>
>
> On Wed, Mar 5, 2008 at 6:01 PM, Warren <[EMAIL PROTECTED]> wrote:
> > I need to display messages from the Session in a plain JavaScript alert
> >  window instead of a feedback panel. I wrote something that
> seems to work
> >  only part of the time. I am writing my messages to error(...)
> on the Session
> >  and retrieving them from the  Session with
> >  getFeedbackMessages().messages(null). I retrieve them when I
> construct my
> >  page and then add them to the body tag's onload event. It will
> work if I
> >  call error(...) right before when I call
> >  getFeedbackMessages().messages(null). It seems that the messages have
> >  already been retrieved or deleted before I get to them.
> >
> >  How can I get a hold of the messages that are displayed on a
> feedback panel
> >  so I can display them on a JS alert window instead?
> >
> >  Thanks,
> >
> >  Warren
> >
> >
> >  ---------------------------------------------------------------------
> >  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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to