Package wicket.markup.html.form

Examples of wicket.markup.html.form.TextField


  public KeywordSelectionForm(final String wicketId, final String title,
      final String keywords, final Boolean andKeywords) {
    super(wicketId, new Model());
    try {
      add(new Label("title", title));
      keywordsField = new TextField("keywords", new Model(keywords));
      add(keywordsField);
      andKeywordsBox = new CheckBox("and", new Model(andKeywords));
      add(andKeywordsBox);
    } catch (Exception e) {
      log.error("Error in KeywordSelectionForm: " + title + " - "
View Full Code Here


    this.createComponents(this.course);
  }

  private void createComponents(final Course course)
  {
    this.add(new TextField("nom"));

    final TextField datePicker = new TextField("date", Date.class);
    this.add(datePicker);
    this.add(new DatePicker("datePicker", datePicker));

    this.add(new DropDownChoice("discipline", new PropertyModel(course,
        "discipline"), this.disciplineController.getDisciplines(),
View Full Code Here

    final CourseCategorieParticipanteLine line = (CourseCategorieParticipanteLine) item
        .getModelObject();

    item.add(new Label("codeCategorie", line.getCodeCategorie()));
    item.add(new Label("sexe", line.getSexe()));
    item.add(new TextField("prix", new PropertyModel(line, "prix")));
    item.add(new CheckBox("participante", new PropertyModel(line,
        "participante")));
  }
View Full Code Here

  {
    this.add(new RequiredTextField("no"));
    this.add(new RequiredTextField("nom"));
    this.add(new RequiredTextField("endroit"));

    final TextField debutPicker = new TextField("dateDebut", Date.class);
    this.add(debutPicker);
    this.add(new DatePicker("debutPicker", debutPicker));

    final TextField finPicker = new TextField("dateFin", Date.class);
    this.add(finPicker);
    this.add(new DatePicker("finPicker", finPicker));

    final Map<Parameters, Object> params = new HashMap<Parameters, Object>();
    params.put(Parameters.SELECTED_ITEM, null);
View Full Code Here

    final SaisonCategorieParticipanteLine line = (SaisonCategorieParticipanteLine) item
        .getModelObject();

    item.add(new Label("codeCategorie", line.getCodeCategorie()));
    item.add(new Label("sexe", line.getSexe()));
    item.add(new TextField("plaqueMin",
        new PropertyModel(line, "plaqueMin")));
    item.add(new TextField("plaqueMax",
        new PropertyModel(line, "plaqueMax")));
    item.add(new TextField("plaqueGeleMin", new PropertyModel(line,
        "plaqueGeleMin")));
    item.add(new TextField("plaqueGeleMax", new PropertyModel(line,
        "plaqueGeleMax")));
    item.add(new CheckBox("participante", new PropertyModel(line,
        "participante")));
  }
View Full Code Here

    this.add(new CartListView("cartListView", this.cart.getCart()));

    this.add(new Label("prixTotal", new PropertyModel(this.cart,
        "prixTotal")));

    this.add(new TextField("commenditaire", new PropertyModel(this.cart,
        "commenditaire")));

    final DropDownChoice dropDownChoice = new DropDownChoice("club",
        new PropertyModel(this.cart, "clubOid"), this.clubsCtrl
            .getClubs(), new ClubChoiceRender());
View Full Code Here

            if (firstEssentialPropertyConfig != null) {
              String firstEssentialPropertyCode = firstEssentialPropertyConfig
                  .getCode();
              Class firstEssentialPropertyClass = firstEssentialPropertyConfig
                  .getPropertyClassObject();
              textField = new TextField("propertyValue",
                  new PropertyModel(neighborParent,
                      firstEssentialPropertyCode,
                      firstEssentialPropertyClass));
            }
          }
        }
        if (textField == null) {
          textField = new TextField("propertyValue",
              new PropertyModel(entity, propertyCode,
                  propertyClass));
          textField.setVisible(false);
        }
      } else if (propertyClass == String.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass));
        if (propertyConfig.isScramble()) {
          setAttribute("type", "password");
        }
      } else if (propertyClass == Integer.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200911L;
          public IConverter getConverter() {
            return new IntegerConverter();
          }
        };
        textField.setType(Integer.class);
      } else if (propertyClass == Long.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200912L;
          public IConverter getConverter() {
            return new LongConverter();
          }
        };
        textField.setType(Long.class);
      } else if (propertyClass == Float.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200913L;
          public IConverter getConverter() {
            return new FloatConverter();
          }
        };
        textField.setType(Float.class);
      } else if (propertyClass == Double.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200914L;
          public IConverter getConverter() {
            return new DoubleConverter();
          }
        };
        textField.setType(Double.class);
      } else if (propertyClass == Date.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200915L;
          public IConverter getConverter() {
            return new DateConverter();
          }
        };
        textField.setType(Date.class);
      } else if (propertyClass == URL.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200916L;
          public IConverter getConverter() {
            return new UrlConverter();
          }
        };
        textField.setType(URL.class);
      } else if (propertyClass == Email.class) {
        textField = new TextField("propertyValue", new PropertyModel(
            entity, propertyCode, propertyClass)) {
          static final long serialVersionUID = 200917L;
          public IConverter getConverter() {
            return new EmailConverter();
          }
View Full Code Here

      WebPage applicantPage = new ApplicantAddFormPage(
          applicantModelContext, applicantViewContext);
      Link applicantLink = new PageLink("applicant", applicantPage);
      add(applicantLink);

      applicantConfirmationField = new TextField(
          "applicantConfirmationField", new Model(applicantOidString));
      add(applicantConfirmationField);
    }
View Full Code Here

    super(wicketId, new Model());
    this.emailConfig = emailConfig;
    this.emails = emails;
    try {
      add(new Label("title", title));
      subjectField = new TextField("subject", new Model(subject));
      add(subjectField);
      messageArea = new TextArea("message", new Model(message));
      add(messageArea);
      errorLabel = new Label("errorLabel", "");
      add(errorLabel);
View Full Code Here

     *            member
     */
    public LoginForm(final String wicketId, final Member member) {
      super(wicketId, new CompoundPropertyModel(member));
      this.member = member;
      add(new TextField("code"));
      add(new PasswordTextField("password"));
    }
View Full Code Here

TOP

Related Classes of wicket.markup.html.form.TextField

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.