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);
}
Aggregations