code: protected void addValidators() {
  
          m_target.removeAllValidators();
          m_target.addValidator(new TargetValidator());
  
          for (Component c : m_componentsToValidate) {
              if (c instanceof CmsPathSelectField) {
                  ((CmsPathSelectField)c).removeAllValidators();
                  ((CmsPathSelectField)c).addValidator(new ResourceValidator());
              }
          }
      }
docs: Adds validators to the input fields.<p>