Package org.olat.core.gui.formelements

Examples of org.olat.core.gui.formelements.TextElement.notEmpty()


  /**
   * @see org.olat.core.gui.components.Form#validate(org.olat.core.gui.UserRequest)
   */
  public boolean validate() {
    TextElement mail = getTextElement("email_address");
    if ( ! mail.notEmpty("email.address.maynotbeempty"))
      return false;
    if ( ! MailHelper.isValidEmailAddress(mail.getValue())) {
      mail.setErrorKey("email.address.notregular");
      return false;
    }
View Full Code Here


   * @see org.olat.user.propertyhandlers.UserPropertyHandler#isValid(org.olat.core.gui.formelements.FormElement)
   */
  public boolean isValid(FormElement ui, Map formContext) {
    TextElement uiText = (TextElement) ui;
    if (ui.isMandatory()) {
      return uiText.notEmpty(i18nFormElementLabelKey()+ ".error.empty");     
    }
    return true;
  }
 
  /**
 
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.