daefu
daefu

Reputation: 471

Wicket: How to post a Feedback Message from within the FeedbackPanel

I have a form with ComponentFeedbackPanels. I have implemented a Filter, that removes the FeedbackMessage shown in the ComponentFeedbackPanels (I have adapted this solution) from the top-of-the-page FeedbackPanel. Now I would like to add a Feedback Message to the top level to remind the users to read CompnoentFeedback Messages that are displayed next to the form fields. I don't know how to add such a message. Calling error() from within that filter or FeedbackPanel or the parent page when already filtering does not add anything to the current FeedbackPanel...

Upvotes: 0

Views: 3814

Answers (1)

bernie
bernie

Reputation: 10380

To add a top-level message, use Session.get().error(message).

Upvotes: 1

Related Questions