maybe this is a bug? i have a ConstrainedPropertyValidator which extends AbstractValidator (which implements INullAcceptingValidator) and returns true for validateOnNullValue() and it works just fine. you might need to trace into the validation code to figure out why it's not calling your validator.
Thies Edeling wrote: > > Hi > > How can I have a NumberValidator allow null values ? I tried extending > the DoubleRangeValidator, implement the INullAcceptingValidator > interface and returning true for validateOnNullValue but my Validator > still isn't called. Also not setting the required property on a > TextField won't give help, when going through the visitFormComponents > the FormComponent is still listed as not valid when no value is provided > in the form. Thanks. > > gr, > Thies > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/NumberValidator-allowing-null-fields---tf4040253.html#a11483713 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user