All, I have custom components which know if they have a validation error when they call "updateModel()", the domain is where validation happens, I'm using this to post error messages which are rendered like a validation error:
@Override public void updateModel() { try { super.updateModel(); } catch (Exception ex) { error(ex.getCause().getMessage()); } } however, unlike a wicket validation error, it still finishes the form submission, is there a way for a component to add a validation error, so that it behaves as if it were a MaximumLengthValidator() error, or something similar? Or do I need to extend IValidator, and pass it the component's domain object in order to do the check and use wicket's validation form processing procedure. Thanks! Justin -- View this message in context: http://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.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