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();

 Iterator<FeedbackMessage> entryIter = me.iterator();
 while (entryIter.hasNext()) {
                           FeedbackMessage entry =
(FeedbackMessage)entryIter.next();
                           System.out.println("Message: " +
entry.toString());
                           entry.markRendered();
 }
target.addComponent(feedback);

On Fri, Mar 5, 2010 at 11:12 PM, Martin Makundi <
[email protected]> wrote:

> 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 <[email protected]>:
> > 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 <
> > [email protected]> wrote:
> >
> >> session.cleanupfeedbackmessages.
> >>
> >> 2010/3/5 Anna Simbirtsev <[email protected]>:
> >> > 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
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
> > --
> > Anna Simbirtsev
> > (416) 729-7331
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Anna Simbirtsev
(416) 729-7331

Reply via email to