The 'required' validation rule looks like it should call the
CommonsValidator.isSupplied method, and then use the 'errors.required'
message in messages.properties.

Instead, when a form with a missing required field is submitted, a
breakpoint set in the 'isSupplied' message is never reached, and the
message that is displayed comes from the
javax.faces.component.UIInput.REQUIRED property.

You can see it in the use-cases app.  If you enter an expiration date,
but no credit card number, and submit the form, you get:
   "creditCard": Value is required.
which isn't coming from messages.properties.  It would be
   Credit Card Number is required.

The input component does not have 'required=true' set.  Can anyone
explain how this is happening?

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to