Class ValidatorHandler

    • Constructor Detail

      • ValidatorHandler

        public ValidatorHandler​(ValidatorConfig config)

        Construct this instance around the configuration information in argument config

        Parameters:
        config - the TagConfig subclass for this kind of attached object.
    • Method Detail

      • getTagHandlerDelegate

        protected TagHandlerDelegate getTagHandlerDelegate()

        Return the implementation specific delegate instance that provides the bulk of the work for this handler instance.

        Specified by:
        getTagHandlerDelegate in class DelegatingMetaTagHandler
        Returns:
        the implementation specific delegate instance
      • getValidatorId

        public String getValidatorId​(FaceletContext ctx)

        Retrieve the id of the validator that is to be created and added to the parent EditableValueHolder. All subclasses should override this method because it is important for Facelets to have a unique way of identifying the validators that are added to this EditableValueHolder and allows exclusions to work properly. An exclusion is a validator declaration that has the attribute "disabled" which resolves to false, instructing Facelets not to register a default validator with the same id.

        Parameters:
        ctx - the FaceletContext for this Facelet
        Returns:
        the validator-id
      • getValidatorConfig

        public ValidatorConfig getValidatorConfig()

        Return the TagConfig subclass used to configure this handler instance.

        Returns:
        the TagConfig subclass used to configure this handler instance.