I solved similar problem where I had some required TextField components and an AJAX component which does a AJAX submit. During this AJAX submit I wanted to prohibit all the form validations. I achieved this by setting the AJAX components (an autocomplete TextField with custom AJAX behaviour) into its own nested form... form which is inside another form.
I'm not sure does this solve your problem. I found my solution just by trying differend solutions and it worked :) hbf wrote: > > I have a custom component that allows the user to select one or more > tags. For this, the component has a text field and an AjaxButton "Add" > to add a tag. > > All works fine if I use the component in a form without validation > errors. If, however, a text field has setRequired(true), the > AjaxButton's onSubmit() method is not called (but onError() instead). > > In this case, I do not want this behaviour but want form validation > to be disabled for the "Add" AjaxButton. (I still need to get the > model values updated, though.) > > Is there an easy way to achieve this? > > I've read about conditional validation, > > http://cwiki.apache.org/WICKET/conditional-validation.html > > but as my component does not know about the enclosing form, I am > looking for another solution. > > Many thanks, > Kaspar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Turn-off-form-validation-tp21090395p21113545.html Sent from the Wicket - User 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