Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
Yes, I have setOutputMarkupId(true). I am using ajax to display feedback messages. Its just clearing the message that does not work for some reason. I tried the following: FeedbackMessages me = Session.get().getFeedbackMessages(); IteratorFeedbackMessage entryIter = me.iterator(); while

Re: Clear feedback panel

2010-03-08 Thread Anna Simbirtsev
I think my feedback messages are not in Session, when I print FeedbackMessages me = Session.get().getFeedbackMessages(); System.out.println(size: + me.size()); it returns 0. On Sat, Mar 6, 2010 at 9:16 AM, Riyad Kalla rka...@gmail.com wrote: I thought the feedback messages were stored in

Re: Clear feedback panel

2010-03-08 Thread Riyad Kalla
Anna, I think it's in the Request scope, I just don't know where to get that list set from to clear it. Anybody else? -R On Mon, Mar 8, 2010 at 9:11 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: I think my feedback messages are not in Session, when I print FeedbackMessages me =

Re: Clear feedback panel

2010-03-06 Thread Riyad Kalla
I thought the feedback messages were stored in the request by default? At least I remember a thread from a week and a half ago about a person doing a redirect and loosing his messages so he had to manually switch to saving them in the Session... On Fri, Mar 5, 2010 at 9:12 PM, Martin Makundi

Clear feedback panel

2010-03-05 Thread Anna Simbirtsev
Hi, How can I clear FeedbackPanel messages? I want to remove them from the page using target.addComponent(f); where f is FeedbackPanel. I just don't know how to set messages to null. Thanks, Anna

Re: Clear feedback panel

2010-03-05 Thread Anna Simbirtsev
It does not work for some reason. Session.get().cleanupFeedbackMessages(); target.addComponent(feedback); The message is still visible. On Fri, Mar 5, 2010 at 4:29 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: session.cleanupfeedbackmessages. 2010/3/5 Anna Simbirtsev

Re: Clear feedback panel

2010-03-05 Thread Jered Myers
You can try grabbing the FeebackMessages via Session.get().getFeedbackMessages() or Session.get().getFeedbackMessages().messages(IFeedbackMessageFilter) and then call FeedbackMessage.markRendered(). On 3/5/2010 1:34 PM, Anna Simbirtsev wrote: It does not work for some reason.

Re: Clear feedback panel

2010-03-05 Thread Martin Makundi
Maybe you are not really replacing the feedback using ajax. Look at wicket-debug popup. Do you hae feedbackPanel.setOutputMarkupId(true);? ** Martin 2010/3/5 Anna Simbirtsev asimbirt...@gmail.com: It does not work for some reason. Session.get().cleanupFeedbackMessages();