});
IModel gsApp = new GeoServerApplicationModel();
// controls whether wicket paths are being generated
final AjaxCheckBox wicketPaths = new AjaxCheckBox("wicketPaths",
new PropertyModel(gsApp, "debugSettings.outputComponentPath")) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
}
};
wicketPaths.setOutputMarkupId(true);
add(wicketPaths);
// controls the xhtml validation filter
xhtml = new AjaxCheckBox("xhtml", new XHTMLModel()) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
wicketIds.setModelObject(Boolean.TRUE);
wicketPaths.setModelObject(Boolean.FALSE);
target.addComponent(wicketIds);
target.addComponent(wicketPaths);
}
};
add(xhtml);
// controls whether wicket ids are being generated
wicketIds = new AjaxCheckBox("wicketIds", new PropertyModel(gsApp,
"markupSettings.stripWicketTags")) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
wicketPaths.setModelObject(Boolean.FALSE);
target.addComponent(wicketPaths);
}
};
wicketIds.setOutputMarkupId(true);
add(wicketIds);
// controls whether the ajax debug is enabled or not
add(new AjaxCheckBox("ajaxDebug", new PropertyModel(gsApp, "debugSettings.ajaxDebugModeEnabled")) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
// nothing to do, the property binding does the work for us
}