AjaxComponentFeedbackPanel extends Panel implements IFeedback { public void setFeedbackFor(Component component){ filter = new ComponentFeedbackMessageFilter(component); } AjaxComponentFeedbackPanel(String id); void setFeedbackFor(Component component);  }
@Test public void testMessagesCaught() { TestPanel p = new TestPanel("panel"); p.setFeedbackFor(p.label); startTest(p, false); getTester().clickLink(p.link); assertEquals(p.label, p.getMessage().getReporter()); assertEquals(msg, p.getMessage().getMessage()); assertTrue(p.getMessage().isRendered()); getTester().assertLabel(p.label.getPageRelativePath(), "Message!"); }