/** * Add a ValidateHandler for the specified validatorId * * @see javax.faces.view.facelets.ValidatorHandler * @see javax.faces.view.facelets.ValidatorConfig * @see javax.faces.application.Application#createValidator(java.lang.String) * @param name * name to use, "foo" would be <my:foo /> * @param validatorId * id to pass to Application instance * @param type * TagHandler type that takes in a ValidatorConfig */ protected final void addValidator(String name, String validatorId, Class<? extends TagHandler> type) { _factories.put(name, new UserValidatorHandlerFactory(validatorId, type)); }
/** * Add a ValidateHandler for the specified validatorId * * @see javax.faces.view.facelets.ValidatorHandler * @see javax.faces.view.facelets.ValidatorConfig * @see javax.faces.application.Application#createValidator(java.lang.String) * @param name * name to use, "foo" would be <my:foo /> * @param validatorId * id to pass to Application instance * @param type * TagHandler type that takes in a ValidatorConfig */ protected final void addValidator(String name, String validatorId, Class<? extends TagHandler> type) { _factories.put(name, new UserValidatorHandlerFactory(validatorId, type)); }
/** * Add a ValidateHandler for the specified validatorId * * See javax.faces.view.facelets.ValidatorHandler * See javax.faces.view.facelets.ValidatorConfig * See javax.faces.application.Application#createValidator(java.lang.String) * @param name * name to use, "foo" would be <my:foo /> * @param validatorId * id to pass to Application instance * @param type * TagHandler type that takes in a ValidatorConfig */ protected final void addValidator(String name, String validatorId, Class<? extends TagHandler> type) { _factories.put(name, new UserValidatorHandlerFactory(validatorId, type)); }