code: private void addEnclosingAndDefaultValidators(FaceletContext ctx, 
                                        FaceletCompositionContext mctx, 
                                        FacesContext context, 
                                        EditableValueHolder component)
      {
          // add all enclosing validators, because they have precedence over default validators.
          Iterator<Map.Entry<String, EditableValueHolderAttachedObjectHandler>> enclosingValidatorIds =
              mctx.getEnclosingValidatorIdsAndHandlers();
          if (enclosingValidatorIds != null)
          {
              while (enclosingValidatorIds.hasNext())
              {
                  Map.Entry<String, EditableValueHolderAttachedObjectHandler> entry = enclosingValidatorIds.next();
                  addEnclosingValidator(context, component, entry.getKey(), entry.getValue());
              }
          }
          // add all defaultValidators
          Map<String, String> defaultValidators = context.getApplication().getDefaultValidatorInfo();
          if (defaultValidators != null && defaultValidators.size() != 0)
          {
              for (Map.Entry<String, String> entry : defaultValidators.entrySet())
              {
                  if (!mctx.containsEnclosingValidatorId(entry.getKey()))
                  {
                      addDefaultValidator(ctx, mctx, context, component, entry.getKey(), entry.getValue());
                  }
              }
          }
      }
docs: Add the default Validators to the component.
  Also adds all validators specified by enclosing <f:validateBean> tags
  (e.g. the BeanValidator if it is not a default validator).
  
  @param context The FacesContext.
  @param mctx the AbstractFaceletContext
  @param component The EditableValueHolder to which the validators should be added