This is what I have done and that works fine.Thank you for your hint! new AjaxCallDecorator() { @Override public CharSequence decorateScript(CharSequence script) { return "if(!confirm('確定返回嗎?')){return false;};" + script; }
@Override public CharSequence decorateOnSuccessScript(CharSequence script) { return script + "alert('返回成功!');" + "window.location.href='" + RequestCycle.get().urlFor(getBackPage())+ "';"; } }; //getBackPage() is customized method by myself. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-do-setResponsePage-after-alert-message-pressed-ok-tp3225482p3248008.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org