Examples of FormElement


Examples of org.olat.core.gui.formelements.FormElement

    userPropertyHandlers = um.getUserPropertyHandlersFor(formIdentifyer, true);
    String currentGroup = null;
    // Add all available user fields to this form
    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
      if (userPropertyHandler == null) continue;
      FormElement ui = userPropertyHandler.getFormElement(getLocale(), null, formIdentifyer, true);
      String group = userPropertyHandler.getGroup();
      if (!group.equals(currentGroup)) {
        if (currentGroup != null) addFormElement("spacer_" + group, new SpacerElement());
        currentGroup = group;
      }
View Full Code Here

Examples of org.olat.core.gui.formelements.FormElement

        } else {
          // update other user properties from form
          List<UserPropertyHandler> userPropertyHandlers = um.getUserPropertyHandlersFor(RegistrationForm2.USERPROPERTIES_FORM_IDENTIFYER, false);
          User persistedUser = persistedIdentity.getUser();
          for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
            FormElement ui = rf2.getFormElement(userPropertyHandler.getName());
            userPropertyHandler.updateUserFromFormElement(persistedUser, ui);
          }
          // persist changes in db
          um.updateUserFromIdentity(persistedIdentity);
          // send notification mail to sys admin
View Full Code Here

Examples of org.olat.core.gui.formelements.FormElement

    UserManager um = UserManager.getInstance();
    userPropertyHandlers = um.getUserPropertyHandlersFor(USERPROPERTIES_FORM_IDENTIFYER, false);
    // Add all available user fields to this form
    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
      if (userPropertyHandler == null) continue;
      FormElement ui = userPropertyHandler.getFormElement(getLocale(), null, USERPROPERTIES_FORM_IDENTIFYER, false);
      addFormElement(userPropertyHandler.getName(), ui);
    }
    // second the user language
    Map<String, String> languages = I18nManager.getInstance().getEnabledLanguagesTranslated();
    StaticSingleSelectionElement singleSelection = new StaticSingleSelectionElement("user.language", StringHelper
View Full Code Here

Examples of org.olat.core.gui.formelements.FormElement

   * @see org.olat.core.gui.components.Form#validate(org.olat.core.gui.UserRequest)
   */
  public boolean validate() {
    // validate each user field
    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
      FormElement ui = getFormElement(userPropertyHandler.getName());
      if (!userPropertyHandler.isValid(ui, null)) {
        return false;
      }
    }
    // validate user login name
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

    }

    public FormElement getForm()
    {
        if (this.formElement == null) {
            this.formElement = new FormElement(this.form);
        }
        return this.formElement;
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

    }

    private FormElement getForm()
    {
        if (this.form == null) {
            this.form = new FormElement(this.propertyForm);
        }
        return this.form;
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

    }

    private FormElement getForm()
    {
        if (this.form == null) {
            this.form = new FormElement(this.objectForm);
        }
        return this.form;
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

            WebElement element = elements.get(i);
            // Make sure all forms are displayed otherwise we can't interact with them.
            if (!element.isDisplayed()) {
                titles.get(i).click();
            }
            forms.add(new FormElement(element));
        }
        return forms;
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

        this.saveButton.click();
    }

    public FormElement getForm()
    {
        return new FormElement(form);
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.FormElement

        wep.setContent("this is the content");
        ViewPage vp = wep.clickSaveAndView();

        // Add an object of the class created and set the value to be the test page
        ObjectEditPage oep = vp.editObjects();
        FormElement objectForm = oep.addObject("Test.EditObjectsTestClass");
        objectForm.setFieldValue(By.id("Test.EditObjectsTestClass_0_prop"), "Test.EditObjectsTestClass");
        oep.clickSaveAndView();

        // Set multiselect to true
        cep = new ClassEditPage();
        cep.switchToEdit("Test", "EditObjectsTestClass");
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.