On 8/26/07, Ian Godman <[EMAIL PROTECTED]> wrote: > Thanks but this does not solve my problem. > > I am submitting the form via ajax using an AjaxSubmitLink. If the form has > errors on it then I do not get the submit, if the form has no errors then the > submit code runs ok. The errors are not displayed.
That's the whole idea. Models are only updated and onSubmit is only called when validation passes. > If I add a AjaxFormValidatingBehavior for the onblur event then I can see the > errors but they check for required fields etc as soon as the first field is > left therefore displaying errors too soon. > > With the AjaxFormValidatingBehavior set to onsubmit event I get no error > reporting and no submit. Do you tell Wicket to re-render whatever you have in place for error reporting (typically a feedback panel)? You should. > I need to validate the entire form only when submit button is pressed > pressed. One possibility is to do the validation "by hand" in the submit > processing code. If you have a cancel button for instance, you would do setDefaultFormProcessing(false), so that it skips validation. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
