Example usage for org.apache.wicket.markup.html.form AbstractSubmitLink add

List of usage examples for org.apache.wicket.markup.html.form AbstractSubmitLink add

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form AbstractSubmitLink add.

Prototype

public MarkupContainer add(final Component... children) 

Source Link

Document

Adds the child component(s) to this container.

Usage

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*/
    }
}