Package javax.faces.validator

Examples of javax.faces.validator.RequiredValidator


     *
     * @see org.richfaces.javascript.client.validator.ValidatorTestBase#createValidator()
     */
    @Override
    protected Validator createValidator() {
        RequiredValidator validator = new RequiredValidator();
        Map<String, Object> options = getOptions();
        return validator;
    }
View Full Code Here


      message = createError(requiredMessage, submittedValue, label);
    } else {
      // Use RequiredValidator to get the same message that all required attributes are using.
      // TODO: this is a little convoluted :X
      try {
        new RequiredValidator().validate(context, component, submittedValue);
      } catch (ValidatorException ve) {
        message = ve.getFacesMessage();
      }

      if (message == null) {
View Full Code Here

            {
                return (Validator)validator;
            }
        }
        Application application = facesContext.getApplication();
        RequiredValidator validator = null;
        try
        {
            validator = (RequiredValidator) application.createValidator(RequiredValidator.VALIDATOR_ID);
        }
        catch (Exception e)
View Full Code Here

TOP

Related Classes of javax.faces.validator.RequiredValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.