01: package wicket.markup.html.panel;
02:
03: import wicket.Component;
04: import wicket.feedback.ComponentFeedbackMessageFilter;
05:
06: /**
07: * Convenience feedback panel that filters the feedback messages based on the
08: * component given in the constructor.
09: *
10: * @author Martijn Dashorst
11: * @author Igor Vaynberg
12: */
13: public class ComponentFeedbackPanel extends FeedbackPanel {
14: /** For serialization. */
15: private static final long serialVersionUID = 1L;
16:
17: /**
18: * Constructor.
19: *
20: * @param id the component id.
21: * @param filter the component for which the messages need to be filtered.
22: */
23: public ComponentFeedbackPanel(String id, Component filter) {
24: super (id, new ComponentFeedbackMessageFilter(filter));
25: }
26: }
|