You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by vaibhav2012 <Va...@gmail.com> on 2012/08/08 13:13:16 UTC

Re: load page in Wicket and message from web browser

Hi,

I never came across such a scenario.
Can you show the exact piece of code you are using, i can try to figure out
by looking at it.



-----
Regards,

Vaibhav Gupta
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/load-page-in-Wicket-and-message-from-web-browser-tp4651042p4651051.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: load page in Wicket and message from web browser

Posted by vaibhav2012 <Va...@gmail.com>.
Hi areq10,

I tried to recreate your scenario and i came across the same situation you
are facing.

One query from you : Have you specified WindowClosedCallback for your
modalWindow???

If not Specify that using this piece of code :

modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
	private static final long serialVersionUID = -1991891482338549420L;

	@Override
	public void onClose(AjaxRequestTarget target) {
		System.out.println("Modal window closed");
		setResponsePage(YOURPAGE.class);	
	}
});

Now when your modalWindow is closed the onClose method of above code is
called, which renders your page without any alert from browser side.



-----
Regards,

Vaibhav Gupta
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/load-page-in-Wicket-and-message-from-web-browser-tp4651042p4651068.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org