Yeah, none of the listed JSF validators will be executed if the input
component has an empty (or null) value.

The only easy way to do this is with the required attribute on the
input component.

One "hard" way of doing this is shown at the bottom of this page:

http://wiki.apache.org/myfaces/OptionalValidationFramework


On 10/6/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 10/6/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:


> Yeah, this is one of those odd ones.  In vanilla jsf, the components that 
hold editable values have a isRequired attribute.  This one boolean is an implicit 
validator.  There are a couple areas that commons validator and JSF validators 
don't align and this is one.
>
> To toggle on the server side "normal" required field validation, the 
ValidatorScript component set the flag.  So you need to add the ValidatorScript to your page.

:::sigh:::  I was trying to get one thing working at a time, and
hadn't yet added <s:validatorScript> back to the page.  Thanks, Gary,
it works now. :)

--
Wendy

Reply via email to