Hi all, I have a CustomButton class that extend the AjaxLink. In one case I need to make it to submit form. So I add the AjaxFormSubmitBehavior to it and the form gets submitted, but execution of the CustomButton#onClick method bypasses form validation (fields are validated but #onClick method gets executed even if form has invalid input).
How to fix this in a right way? Possibly without creation of the separate CustomSubmitButton class, which extends AjaxSubmitLink. Best, Igor