modalEditLog.setContent(new
ModalEditPanel(modalEditLog.getContentId(), modalEditLog, result));
modalEditLog.setWindowClosedCallback(new WindowClosedCallback()
{
private static final long serialVersionUID =
7961678233294274184L;
public void onClose(AjaxRequestTarget target) {
doRefresh(target);
}
});
Panel ModalEditPanel is the replacement for the original WebPage
ModalEditPage and it has the close button to close the window
addOrReplace(new AjaxLink<T>("btnClose") {
private static final long serialVersionUID =
-8174543450190822811L;
@Override
public void onClick(AjaxRequestTarget target) {
window.close(target);
}
});
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]