Search in sources :

Example 1 with IndicatingAjaxButton

use of org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton in project syncope by apache.

the class ActionDataTablePanel method addCancelButton.

public void addCancelButton(final BaseModal<?> modal) {
    final AjaxButton cancel = new IndicatingAjaxButton(CANCEL, new ResourceModel(CANCEL)) {

        private static final long serialVersionUID = -4804368561204623354L;

        @Override
        protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
            modal.close(target);
        }
    };
    cancel.setDefaultFormProcessing(false);
    bulkActionForm.addOrReplace(cancel);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) IndicatingAjaxButton(org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton) AjaxButton(org.apache.wicket.ajax.markup.html.form.AjaxButton) Form(org.apache.wicket.markup.html.form.Form) ResourceModel(org.apache.wicket.model.ResourceModel) IndicatingAjaxButton(org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton)

Aggregations

AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 AjaxButton (org.apache.wicket.ajax.markup.html.form.AjaxButton)1 IndicatingAjaxButton (org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton)1 Form (org.apache.wicket.markup.html.form.Form)1 ResourceModel (org.apache.wicket.model.ResourceModel)1