2
我使用ajax的按鈕,在我的檢票應用該代碼是工作的罰款:檢票DisableComponentListener禁用整個頁面
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
attributes.getAjaxCallListeners().add(new DisableComponentListener(form));
}
形式是標記一個組件:ID =「形式」。
但我想禁用呈現的整個WebPage對象,並呈現here所述的指標。用DisableComponentListener裏面的getPage()替換表單參數似乎沒有用起來。
感謝,但我怎麼能到達屬於我的網頁的父頁的WebMarkupContainer? – SoulMagnet
你需要在你的超類中提供一個getter(在添加WebMarkupContainer as字段之後) – msparer