Examples of PasswordTextField


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

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

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

    RequiredTextField<String> login = new RequiredTextField<String>("login");
    login.add(new StringValidator(4, null));
    // login.setLabel(new Model<String>("testname"));
    add(login);

    passwordField = new PasswordTextField("password");
    add(passwordField);
    passwordField.setRequired(false);

    add(new DropDownChoice<Long>("salutations_id", getSalutationsIds(),
        new IChoiceRenderer<Long>() {
View Full Code Here

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

          }
        }
      }
      add(new FeedbackPanel("feedback"));
      add(new RequiredTextField<String>("login", new PropertyModel<String>(this, "login")));
      add(new PasswordTextField("pass", new PropertyModel<String>(this, "password")).setResetPassword(true));
      add(new CheckBox("rememberMe", new PropertyModel<Boolean>(this, "rememberMe")).setOutputMarkupId(true));
      add(new HiddenField<String>("area", new PropertyModel<String>(this, "area"))
          .setMarkupId("area")
          .setOutputMarkupId(true));
    }
View Full Code Here

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

    add(new RequiredTextField<String>("appointmentName"));
    add(new TextArea<String>("appointmentDescription"));
    add(new TextField<String>("appointmentLocation"));
    add(new DateTimeField("appointmentStarttime"));
    add(new DateTimeField("appointmentEndtime"));
    final PasswordTextField pwd = new PasswordTextField("password");
    pwd.setEnabled(isPwdProtected());
    pwd.setOutputMarkupId(true);
    add(pwd);
   
    add(new DropDownChoice<AppointmentReminderTyps>(
        "remind"
        , Application.getBean(AppointmentReminderTypDao.class).getAppointmentReminderTypList()
        , new ChoiceRenderer<AppointmentReminderTyps>("name", "typId")));
   
    final DropDownChoice<RoomType> roomType = new DropDownChoice<RoomType>(
        "room.roomtype"
        , Application.getBean(RoomManager.class).getAllRoomTypes()
        , new ChoiceRenderer<RoomType>("name", "roomtypes_id"));
    roomType.setEnabled(createRoom);
    roomType.setOutputMarkupId(true);
    add(roomType);
   
    final DropDownChoice<Room> room = new DropDownChoice<Room>(
        "room"
        , getRoomList()
        , new ChoiceRenderer<Room>("name", "rooms_id"));
    room.setEnabled(!createRoom);
    room.setOutputMarkupId(true);
    add(room);
   
    add(new AjaxCheckBox("createRoom", new PropertyModel<Boolean>(this, "createRoom")) {
      private static final long serialVersionUID = -3743113990890386035L;

      @Override
      protected void onUpdate(AjaxRequestTarget target) {
        createRoom = getConvertedInput();
        target.add(roomType.setEnabled(createRoom), room.setEnabled(!createRoom));
      }
    });
    add(new AjaxCheckBox("isPasswordProtected") {
      private static final long serialVersionUID = 6041200584296439976L;

      @Override
      protected void onUpdate(AjaxRequestTarget target) {
        CalendarForm.this.getModelObject().setIsPasswordProtected(getConvertedInput());
        pwd.setEnabled(isPwdProtected());
        target.add(pwd);
      }
    });
  }
View Full Code Here

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

      super(id);

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

      // MarkupContainer row for remember me checkbox
      WebMarkupContainer rememberMeRow = new WebMarkupContainer("rememberMeRow");
      add(rememberMeRow);
View Full Code Here

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

    {
      super(id);

      // Attach textfield components that edit properties map model
      add(new TextField("username", new PropertyModel(properties, "username")));
      add(new PasswordTextField("password", new PropertyModel(properties, "password")));
    }
View Full Code Here

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

        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).getLdapConfigs();
      domain = ldaps.get(0);
      add(new WebMarkupContainer("ldap")
        .add(new DropDownChoice<LdapConfig>("domain", new PropertyModel<LdapConfig>(SignInDialog.this, "domain")
View Full Code Here

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

      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

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

      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

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

  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)));

    SalutationDao salutDao = getBean(SalutationDao.class);
    FieldLanguageDao langDao = getBean(FieldLanguageDao.class);
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.