List of usage examples for org.apache.wicket.markup.html.form AbstractSubmitLink add
public MarkupContainer add(final Component... children)
From source file:org.wickedsource.wickedforms.wicket6.components.fields.AddSectionButtonPanel.java
License:Apache License
@Override protected void onConfigure() { // The button must be added in onConfigure, because the parent FormModel // can only be determined after this component's hierarchy has been set. if (!hasBeenRendered()) { AbstractSubmitLink button; button = createAjaxButton("button", (AddSectionButtonModel) getWickedFormModel()); button.setDefaultFormProcessing(false); button.add(new AttributeModifier("value", ((AddSectionButtonModel) getWickedFormModel()).getLabel())); add(button);/* w w w . j a v a 2 s. co m*/ } }