I have a page with the Wizard component. The user can navigate through the wizard panels using the next and previous buttons, on which I have full (non-ajax) forms, so that the application is friendly.
When I click the next button, I would like to try to do an ajax form validation (if javascript is enabled). I tried:
nextButton.add( new AjaxFormValidatingBehavior( form, "onsubmit") );
to add such a check. The behavior works, however, when validation errors occur, the browser still submits the entire form.
What is a Wicket to prevent the browser from submitting a form in this case?
source share