private static final long serialVersionUID = 1L;
@Override
protected void onSubmit(AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) {
ReadOnlyGeoServerLoader loader = getReadOnlyGeoServerLoader();
if (loader.isEnabled()) {
readOnlyInfo.getModel().setObject("disabled");
loader.enable(false);
} else {
readOnlyInfo.getModel().setObject("enabled");
loader.enable(true);
}
target.addComponent(this.getParent());
}
};
form.add(readOnly);