reply by myself. 
I use target.appendJavascript to solve my problem.

        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                onConfirm(target, form);
                target.appendJavascript("alert('" + responseMessage_ + "');");
                if (redirectPage() != null) {
RequestCycle.get().urlFor(redirectPage()) + "';");

//redirectPage() is my customized method.

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