Dear Forum, I apologize if this question has come up before. I have an email field and I want to check two things: one: that the email address is well formed. And two: that the email address isn't already registered.
For the first one I use EmailAddressValidator and for the second one I create my own validator. I then add AjaxFormComponentUpdatingBehavior to the email address field as explained in the Apache Wicket Cookbook, Chapter 7: Adding Ajax Validation to Individual Form components. The problem I have is that, inside AjaxFormComponentUpdatingBehavior.onError(AjaxRequestTarget target, RuntimeException e) I don't know whether the error came from EmailAddressValidator or my own validator. The error message should be different depending which Validator is complaining. Is there a way to find out which validator the error is coming from? that would make things more efficient. Thanks in advance. Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Ajax-Validation-to-Individual-Form-components-Distinguishing-error-from-multiple-validators-tp4651319.html Sent from the Users forum 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