code: @SuppressWarnings("unchecked")
      protected void validate() {
  
          if (m_ou == null) {
              m_name.removeAllValidators();
              m_name.addValidator(new NameValidator());
          }
          m_description.setRequired(true);
          m_description.setRequiredError("Required");
  
          if (m_ouResources.getRows().isEmpty() & !m_webuser.getValue().booleanValue()) {
              CmsPathSelectField field = new CmsPathSelectField();
              field.setUseRootPaths(true);
              field.setCmsObject(m_cms);
              m_ouResources.addRow(field);
          }
          for (I_CmsEditableGroupRow row : m_ouResources.getRows()) {
              ((AbstractField<String>)row.getComponent()).removeAllValidators();
              ((AbstractField<String>)row.getComponent()).addValidator(new ResourceValidator());
          }
      }
docs: Adds validators to fields.<p>