Examples of clearError()


Examples of com.barchart.udt.SocketUDT.clearError()

      socket.bind(localSocketAddress);

      int code = socket.getErrorCode();
      String message = socket.getErrorMessage();
      socket.clearError();
      log.info("code={} message={}", code, message);

      localSocketAddress = socket.getLocalSocketAddress();
      log.info("localSocketAddress={}", localSocketAddress);
View Full Code Here

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

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

      //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

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

                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

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

   * @param link the link model object
   */
  private void addNewFormLink(int index, final LLModel link) {
    // add link target
    TextElement lTarget = uifactory.addTextElement("target" + counter, null, -1, link.getTarget(), titleContainer);
    lTarget.clearError();
    lTarget.setDisplaySize(40);
    lTarget.setMandatory(true);
    lTarget.setNotEmptyCheck("ll.table.target.error");
    lTarget.setItemValidatorProvider(new ItemValidatorProvider() {
      public boolean isValidValue(String value, ValidationError validationError, @SuppressWarnings("unused") Locale locale) {
View Full Code Here

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

    htmlTargetSelection.select(BLANK_KEY, "_blank".equals(link.getHtmlTarget()));
    lHtmlTargetInputList.add(index, htmlTargetSelection);
   
    // add link description
    TextElement lDescription = uifactory.addTextElement("description" + counter, null, -1, link.getDescription(), titleContainer);
    lDescription.clearError();
    lDescription.setDisplaySize(20);
    lDescription.setNotEmptyCheck("ll.table.description.error");
    lDescription.setMandatory(true);
    lDescription.setUserObject(link);
    lDescriptionInputList.add(index, lDescription);
View Full Code Here

Examples of org.olat.core.gui.formelements.FormElement.clearError()

      Iterator it_formelemnames = getNameIterator();
      while (it_formelemnames.hasNext()) {
        String name = (String) it_formelemnames.next();
        String[] values = ureq.getHttpReq().getParameterValues(name);
        FormElement fe = getFormElement(name);
        fe.clearError(); // clear any previous errors
        if (!fe.isReadOnly()) {
          fe.setValues(values);
        }
      }
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.