Package org.olat.core.gui.formelements

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


    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

   * @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

TOP

Related Classes of org.olat.core.gui.formelements.FormElement

Copyright © 2018 www.massapicom. 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.