wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kyc <brend...@hku.hk>
Subject Re: ModalWindow cannot trigger setWindowClosedCallback or setCloseButtonCallback problem
Date Fri, 08 Mar 2019 01:17:31 GMT
	        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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message