/** * Factory method for create a new {@link ComponentFeedbackPanel}. * * @param id * the id * @param filter * the filter * @return the {@link ComponentFeedbackPanel} */ public static ComponentFeedbackPanel newComponentFeedbackPanel(final String id, final Component filter) { final ComponentFeedbackPanel feedbackPanel = new ComponentFeedbackPanel(id, filter); feedbackPanel.setOutputMarkupId(true); return feedbackPanel; }
public FixedFeedbackPanel(String id, Component component) { super(id); outerPanel = new WebMarkupContainer("outerPanel"); if (component == null) { innerPanel = new FeedbackPanel("innerPanel"); } else { innerPanel = new ComponentFeedbackPanel("innerPanel", component); } expand = new Image("expand", expandImageRef); outerPanel.add(expand.setOutputMarkupId(true)); outerPanel.add(innerPanel.setOutputMarkupId(true)); add(outerPanel.setOutputMarkupId(true)); }
/** * Factory method for create a new {@link ComponentFeedbackPanel}. * * @param id * the id * @param filter * the filter * @return the {@link ComponentFeedbackPanel} */ public static ComponentFeedbackPanel newComponentFeedbackPanel(final String id, final Component filter) { final ComponentFeedbackPanel feedbackPanel = new ComponentFeedbackPanel(id, filter); feedbackPanel.setOutputMarkupId(true); return feedbackPanel; }