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

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

Introduction

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

Prototype

@Override
public final AbstractSubmitLink setDefaultFormProcessing(boolean defaultFormProcessing) 

Source Link

Document

Sets the defaultFormProcessing property.

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);//  ww w .  j  a  va 2  s.co m
    }
}