Examples of validate()


Examples of javax.faces.validator.DoubleRangeValidator.validate()

        if(annotation.maximum() != Double.MAX_VALUE)
        {
            doubleRangeValidator.setMaximum(annotation.maximum());
        }

        doubleRangeValidator.validate(facesContext, uiComponent, convertedObject);
    }
}
View Full Code Here

Examples of javax.faces.validator.LengthValidator.validate()

                                            .createValidator("javax.faces.Length");

        lengthValidator.setMinimum(annotation.minimum());
        lengthValidator.setMaximum(annotation.maximum());

        lengthValidator.validate(facesContext, uiComponent, convertedObject);
    }
}
View Full Code Here

Examples of javax.faces.validator.LongRangeValidator.validate()

        if(annotation.maximum() != Long.MAX_VALUE)
        {
            longRangeValidator.setMaximum(annotation.maximum());
        }

        longRangeValidator.validate(facesContext, uiComponent, convertedObject);
    }
}
View Full Code Here

Examples of javax.faces.validator.Validator.validate()

        }

        Map<String, UIInput> components = getComponents();
        try {
            UIComponent parent = this.getParent();
            validator.validate(context, parent, components);
        } catch (ValidatorException e) {
            setValid(false);
            for (UIInput comp : components.values()) {
                comp.setValid(false);
                if (isShowFieldMessages()) {
View Full Code Here

Examples of javax.mail.internet.InternetAddress.validate()

                address.setPersonal(name, set.name());
            }

            // run sanity check on new InternetAddress object; if this fails
            // it will throw AddressException.
            address.validate();
        }
        catch (AddressException e)
        {
            throw new EmailException(e);
        }
View Full Code Here

Examples of javax.portlet.PreferencesValidator.validate()

        //   If the preferences cannot pass the validation,
        //   an ValidatorException will be thrown out.
        PreferencesValidator validator = window.getPortletEntity()
            .getPreferencesValidator();
        if (validator != null) {
          validator.validate(this);
        }
        // Store the portlet preferences.
        InternalPortletPreference[] prefs = (InternalPortletPreference[])
            (new ArrayList(preferences.values())).toArray(
                new InternalPortletPreference[preferences.size()]);
View Full Code Here

Examples of javax.resource.spi.ActivationSpec.validate()

            }


            // validate the activation spec
            try {
                activationSpec.validate();
            } catch (UnsupportedOperationException uoe) {
                logger.info("ActivationSpec does not support validate. Implementation of validate is optional");
            }
            // also try validating using Bean Validation if there is a Validator available in the context.
            try {
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo.validate()

              for (int i = 0; i < vInfos.length; i++) {
                results.add(new TaglibVariable(vInfos[i].getClassName(), vInfos[i].getVarName(), vInfos[i].getScope(), decl.getDescription()));
              }
            }

            ValidationMessage[] messages = tei.validate(td);
            if (messages != null && messages.length > 0) {
              for (int i = 0; i < messages.length; i++) {
                Object createdProblem = createValidationMessageProblem(document, customTag, messages[i].getMessage());
                if (createdProblem != null) {
                  problems.add(createdProblem);
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagInfo.validate()

            if (tagInfo == null) {
                err.jspError(n, "jsp.error.missing.tagInfo", n.getQName());
            }

            @SuppressWarnings("null") // tagInfo can't be null here
            ValidationMessage[] errors = tagInfo.validate(n.getTagData());
            if (errors != null && errors.length != 0) {
                StringBuilder errMsg = new StringBuilder();
                errMsg.append("<h3>");
                errMsg.append(Localizer.getMessage(
                        "jsp.error.tei.invalid.attributes", n.getQName()));
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagLibraryValidator.validate()

        String uri = getURI();
        if (uri.startsWith("/")) {
            uri = URN_JSPTLD + uri;
        }

        return tlv.validate(getPrefixString(), uri, thePage);
    }

    private TagLibraryValidator tagLibraryValidator;
}
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.