Package org.olat.core.gui.components.form.flexible

Examples of org.olat.core.gui.components.form.flexible.FormItem.clearError()


      FormItem formItem = this.formItems.get(userPropertyHandler.getName());

      if (!userPropertyHandler.isValid(formItem, this.formContext)) {
        formOK = false;
      } else {
        formItem.clearError();
      }
    }
   
    try {
      String aboutMe = textAboutMe.getValue();
View Full Code Here


      //we assume here that there are only textElements for the user properties
      FormItem formItem = this.flc.getFormComponent(userPropertyHandler.getName());
      if ( ! userPropertyHandler.isValid(formItem, null) || formItem.hasError()) {
        return false;       
      }
      formItem.clearError();
    }
    // special test on email address: validate if email is already used
    if (emailTextElement != null) {     
      String email = emailTextElement.getValue();
      // Check if email is not already taken
View Full Code Here

                if (! handler.isValidValue(evaluatedInputFieldValue, valicationError, ureq.getLocale())) {
                  formItem.setErrorKey(valicationError.getErrorKey(), null);
                  return false;
                }
                // else validation was ok, reset previous errors
                formItem.clearError();
              }
            }

            // special case: check password-syntax:
            if (propertyField.getName().equals("password")) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.