Examples of RequiredValidatorException


Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

    {
        if (convertedObject == null || convertedObject.equals("") ||
                (convertedObject instanceof Collection && ((Collection)convertedObject).isEmpty()) ||
                (convertedObject instanceof Map && ((Map)convertedObject).isEmpty()))
        {
            throw new RequiredValidatorException(
                    getValidationErrorFacesMessage(metaDataEntry.getValue(Required.class)));
        }
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

    private void checkRequiredConvertedObject(Object convertedObject) throws ValidatorException
    {
        if (convertedObject == null || ("".equals(convertedObject) && ExtValUtils.interpretEmptyStringValuesAsNull()))
        {
            this.violation = CommonMetaDataKeys.REQUIRED;
            throw new RequiredValidatorException(getValidationErrorFacesMessage(null));
        }
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

    private void checkRequiredConvertedObject(Object convertedObject) throws ValidatorException
    {
        if (convertedObject == null || ("".equals(convertedObject) && ExtValUtils.interpretEmptyStringValuesAsNull()))
        {
            this.violation = CommonMetaDataKeys.REQUIRED;
            throw new RequiredValidatorException(getValidationErrorFacesMessage(null));
        }
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

            ValidatorException validatorException;

            if(e instanceof RequiredValidatorException)
            {
                validatorException = new RequiredValidatorException(
                        ExtValUtils.convertFacesMessage(e.getFacesMessage()), e.getCause());
            }
            else
            {
                validatorException = new ValidatorException(
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

    {
        if (convertedObject == null || convertedObject.equals("") ||
                (convertedObject instanceof Collection && ((Collection)convertedObject).isEmpty()) ||
                (convertedObject instanceof Map && ((Map)convertedObject).isEmpty()))
        {
            throw new RequiredValidatorException(
                    getValidationErrorFacesMessage(metaDataEntry.getValue(Required.class)));
        }
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

            ValidatorException validatorException;

            if(e instanceof RequiredValidatorException)
            {
                validatorException = new RequiredValidatorException(
                        ExtValUtils.convertFacesMessage(e.getFacesMessage()), e.getCause());
            }
            else
            {
                validatorException = new ValidatorException(
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.exception.RequiredValidatorException

            ValidatorException validatorException;

            if(e instanceof RequiredValidatorException)
            {
                validatorException = new RequiredValidatorException(
                        ExtValUtils.convertFacesMessage(e.getFacesMessage()), e.getCause());
            }
            else
            {
                validatorException = new ValidatorException(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.