Apache Wicket > Framework Documentation > Reference library > How to do things in Wicket > View Layer > Using more than one FeedbackPanel per Page
Added by Confluence Administrator, last edited by Rüdiger Schulz on Feb 05, 2007  (view change) show comment

If you want to have more than one FeedbackPanel on a page, but don't want to show errors messages in both at the same time use the following to filter the messages.

FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
feedbackPanel.setFilter(new ContainerFeedbackMessageFilter(YourForm.this));
add(feedbackPanel);

Now only error messages reported by (direct or indirect) children of YourForm.this will be shown in the FeedbackPanel.