When using an ajax button in my Wicket application, the following code works perfectly:
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
attributes.getAjaxCallListeners().add(new DisableComponentListener(form));
}
The component with markup:id="form" is referred to as form.
However, I am looking to disable the entire WebPage object that is rendered and display an indicator as outlined here. Unfortunately, replacing the form argument with getPage() inside the DisableComponentListener does not appear to work.