Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.PasswordTextField


  private static final long serialVersionUID = 1305752513494262480L;
  private final PasswordTextField confirmPassword;
 
  public UserForm(String id, IModel<User> model) {
    super(id, model, false);
    add(confirmPassword = new PasswordTextField("confirmPassword", new Model<String>()));
    confirmPassword.setRequired(false);
  }
View Full Code Here


      // Attach textfield components that edit properties map
      // in lieu of a formal beans model
      add(username = new TextField<String>("username", new PropertyModel<String>(properties,
        "username")));
      add(password = new PasswordTextField("password", new PropertyModel<String>(properties,
        "password")));

      username.setType(String.class);
      password.setType(String.class);
View Full Code Here

    public ParamsStep1() throws Exception {
      super(welcomeStep);
      //TODO localize
            add(new RequiredTextField<String>("cfg.username").add(minimumLength(USER_LOGIN_MINIMUM_LENGTH)));
            add(new PasswordTextField("cfg.password").add(minimumLength(USER_PASSWORD_MINIMUM_LENGTH)));
            add(new RequiredTextField<String>("cfg.email").add(RfcCompliantEmailAddressValidator.getInstance()));
            add(tzDropDown = new TzDropDown("ical_timeZone"));
            add(new RequiredTextField<String>("cfg.group"));
    }
View Full Code Here

            add(new YesNoDropDown("createDefaultRooms"));
            add(new TextField<String>("cfg.mailReferer"));
            add(new TextField<String>("cfg.smtpServer"));
            add(new TextField<Integer>("cfg.smtpPort").setRequired(true));
            add(new TextField<String>("cfg.mailAuthName"));
            add(new PasswordTextField("cfg.mailAuthPass").setRequired(false));
            add(new YesNoDropDown("mailUseTls"));
            //TODO check mail server
            add(new YesNoDropDown("replyToOrganizer"));
            add(new LangDropDown("defaultLangId"));
            add(new DropDownChoice<String>("cfg.defaultExportFont", allFonts));
View Full Code Here

  public GeneralUserForm(String id, IModel<User> model, boolean isAdminForm) {
    super(id, model);

    //TODO should throw exception if non admin User edit somebody else (or make all fields read-only)
    add(passwordField = new PasswordTextField("password", new Model<String>()));
    ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
    passwordField.setRequired(false).add(minimumLength(getMinPasswdLength(cfgDao)));

    updateModelObject(getModelObject());
    SalutationDao salutDao = getBean(SalutationDao.class);
View Full Code Here

    public ParamsStep1() throws Exception {
      super(welcomeStep);
      //TODO localize
            add(new RequiredTextField<String>("cfg.username").add(minimumLength(USER_LOGIN_MINIMUM_LENGTH)));
            add(new PasswordTextField("cfg.password").add(minimumLength(USER_PASSWORD_MINIMUM_LENGTH)));
            add(new RequiredTextField<String>("cfg.email").add(RfcCompliantEmailAddressValidator.getInstance()));
            add(tzDropDown = new TzDropDown("ical_timeZone"));
            add(new RequiredTextField<String>("cfg.group"));
    }
View Full Code Here

            add(new YesNoDropDown("createDefaultRooms"));
            add(new TextField<String>("cfg.mailReferer"));
            add(new TextField<String>("cfg.smtpServer"));
            add(new TextField<Integer>("cfg.smtpPort").setRequired(true));
            add(new TextField<String>("cfg.mailAuthName"));
            add(new PasswordTextField("cfg.mailAuthPass").setRequired(false));
            add(new YesNoDropDown("mailUseTls"));
            //TODO check mail server
            add(new YesNoDropDown("replyToOrganizer"));
            add(new LangDropDown("defaultLangId"));
            add(new DropDownChoice<String>("cfg.defaultExportFont", allFonts));
View Full Code Here

      lastNameField.setLabel(Model.of(WebSession.getString(118)));
      add(loginField = new RequiredTextField<String>("login", new PropertyModel<String>(RegisterDialog.this,
          "login")));
      loginField.setLabel(Model.of(WebSession.getString(114)));
      loginField.add(minimumLength(getMinLoginLength(cfgDao)));
      add(passwordField = new PasswordTextField("password", new PropertyModel<String>(RegisterDialog.this,
          "password")));
      passwordField.setLabel(Model.of(WebSession.getString(115)));
      passwordField.setResetPassword(true).add(minimumLength(getMinPasswdLength(cfgDao)));
      add(confirmPassword = new PasswordTextField("confirmPassword", new Model<String>()).setResetPassword(true));
      confirmPassword.setLabel(Model.of(WebSession.getString(116)));
      add(emailField = new RequiredTextField<String>("email", new PropertyModel<String>(RegisterDialog.this,
          "email")));
      emailField.setLabel(Model.of(WebSession.getString(119)));
      emailField.add(RfcCompliantEmailAddressValidator.getInstance());
View Full Code Here

      private PasswordTextField confirmPassword;
      {
        add(feedback.setOutputMarkupId(true));
        add(login = new TextField<String>("login", Model.of(user.getLogin())));
        login.setOutputMarkupId(true);
        add(password = new PasswordTextField("password", new Model<String>()));
        password.setOutputMarkupId(true);
        password.setLabel(Model.of(WebSession.getString(328)));
        ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
        password.setRequired(false).add(minimumLength(getMinPasswdLength(cfgDao)));
        add(confirmPassword = new PasswordTextField("confirmPassword", new Model<String>()));
        confirmPassword.setOutputMarkupId(true);
        confirmPassword.setLabel(Model.of(WebSession.getString(329)));
        confirmPassword.setRequired(true).add(minimumLength(getMinPasswdLength(cfgDao)));

        add(new AjaxButton("submit") { //FAKE button so "submit-on-enter" works as expected
View Full Code Here

        alreadyLoggedIn();
      }
      add(feedback.setOutputMarkupId(true));
      add(loginField = new RequiredTextField<String>("login", new PropertyModel<String>(SignInDialog.this, "login")));
      loginField.setLabel(Model.of(WebSession.getString(114)));
      add(passField = new PasswordTextField("pass", new PropertyModel<String>(SignInDialog.this, "password")).setResetPassword(true));
      passField.setLabel(Model.of(WebSession.getString(115)));
      List<LdapConfig> ldaps = getBean(LdapConfigDao.class).get();
      int selectedLdap = getBean(ConfigurationDao.class).getConfValue(CONFIG_DEFAULT_LDAP_ID, Integer.class, "0");
      domain = ldaps.get(selectedLdap < ldaps.size() && selectedLdap > 0 ? selectedLdap : 0);
      add(new WebMarkupContainer("ldap")
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.PasswordTextField

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.