This is what I have done and that works fine.Thank you for your hint!

new AjaxCallDecorator() {
       public CharSequence decorateScript(CharSequence script) {
                return "if(!confirm('確定返回嗎?')){return false;};"
                        + script;

        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:
Sent from the Users forum mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to