Excuse me,I have one more question.

After I press ajax onsubmit, decorateOnSuccessScript is always executed if
no exception occurred.

how do I stop and not to run decorateOnSuccessScript if the validator finds
some components validate failed?
(The onsubmit action will not be executed while validate error found,so
"insert successfully" alertion should not poped up.)

        //how to skip this function while the validator found error?
        public CharSequence decorateOnSuccessScript(CharSequence script) { 
                return script + "alert('insert successfully');" 
                        + "window.location.href='" 
                        + RequestCycle.get().urlFor(getBackPage())+ "';"; 

View this message in context: 
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

Reply via email to