did you have your costum validator support validating null values? Validator.getAcceptsNull() http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/form/validator/Validator.html
radone wrote: > You should try to add a "required" validator like this: > > <binding name="validators" value="validators:required, > paymentMethod=PayByCheck"/> > > > -RB- > > Joseph Hannon wrote: > >> Does someone have a suggestion on this? >> >> Thanks, >> Joseph >> >> On 10/6/05, Joseph Hannon <[EMAIL PROTECTED]> wrote: >> >> >>> I have a working custom validator for a TextField that is being called >>> using the setup listed below. The validator determines internally >>> whether to >>> execute all code in it's validate(...) method or skip based on a >>> checkbox on >>> the form. Works great, except I just realized that if I don't have >>> any text >>> in the control and submit my form, the validator is not getting >>> called it >>> appears, and I would like it to get called on each submit. I won't >>> set this >>> field up to be mandatory as it is ok to be empty when the checkbox is >>> cleared. >>> >>> I saw the post `TextField changes behaviour from T3 to T4 ?` and >>> wonder if >>> that is related. >>> >>> How can I get this validator to be called for each submit no matter the >>> text in the TextField control? >>> >>> Thanks, >>> Joseph >>> >>> Page: >>> ... >>> <component id="QuadOne" type="TextField"> >>> <binding name="value" value="creditCardQuadOne"/> >>> <binding name="validators" value="validators:paymentMethod=PayByCheck"/> >>> <binding name="displayName" value="literal:Card Number Group One"/> >>> </component> >>> ... >>> >>> Hivemind: >>> ... >>> <contribution configuration-id="tapestry.form.validator.Validators"> >>> <validator name="paymentMethod" configurable="true" class=" >>> foo.bar.pages.CreditCardQuadValidator"/> >>> </contribution> >>> ... >>> >>> >>> >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
