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

Reply via email to