Package wicket.markup.html.form

Examples of wicket.markup.html.form.RequiredTextField


    this.createComponents();
  }

  private void createComponents()
  {
    this.add(new RequiredTextField("nomComplet", new PropertyModel(
        this.afterClub, "nomComplet")));

    this.add(HomePage.link("cancel", ListClubsPanel.class, null));

    if (this.beforeClub == null)
View Full Code Here


    this.createComponents();
  }

  private void createComponents()
  {
    this.add(new RequiredTextField("nom"));

    if (this.isNew)
    {
      this.add(new Label("labelTitre", "Créer une discipline"));
    }
View Full Code Here

    this.createComponents();
  }

  private void createComponents()
  {
    this.add(new RequiredTextField("codeCategorie"));
    this.add(new RequiredTextField("nom"));

    final RequiredTextField ageMin = new RequiredTextField("ageMin");
    ageMin.add(NumberValidator.range(1, 99));
    ageMin.setType(Integer.class);
    this.add(ageMin);

    final RequiredTextField ageMax = new RequiredTextField("ageMax");
    ageMax.add(NumberValidator.range(1, 99));
    ageMax.setType(Integer.class);
    this.add(ageMax);

    this.add(new SexeDropDownChoice("sexe", new PropertyModel(
        this.categorie, "sexe")).setRequired(true));
    this.add(new NiveauDropDownChoice("niveau").setRequired(true));
View Full Code Here

    this.createComponents();
  }
 
  private void createComponents()
  {
    RequiredTextField plaque;
    RequiredTextField licence;
   
   
    plaque = new RequiredTextField("plaque", new PropertyModel(this.afterInfoSaison, "plaqueUnique"));
    plaque.add(NumberValidator.range(1, 99999));
    plaque.setType(Integer.class);
   
    licence = new RequiredTextField("licence", new PropertyModel(this.afterInfoSaison, "noLicence"));
   
    final DropDownChoice categorieChoice = new DropDownChoice("categorie", new PropertyModel(this.afterInfoSaison,"categorie"),this.categories.getList(), new CategoryChoiceRender());
    this.add(categorieChoice.setRequired(true));
    this.add(plaque);
    this.add(licence);
View Full Code Here

  private void createComponents()
  {
    // Doit pointer ailleurs...
    this.add(HomePage.link("cancel", ViewPersonnePanel.class, null));

    this.add(new RequiredTextField("nom", new PropertyModel(this.personne,
        "nom")).setLabel(new Model("Nom")));
    this.add(new RequiredTextField("prenom", new PropertyModel(
        this.personne, "prenom")).setLabel(new Model("Prenom")));
    this.add(new RequiredTextField("adresse", new PropertyModel(
        this.personne, "adresse")).setLabel(new Model("Adresse")));
    this.add(new RequiredTextField("ville", new PropertyModel(
        this.personne, "ville")).setLabel(new Model("Ville")));
    this.add(new RequiredTextField("province", new PropertyModel(
        this.personne, "province")).setLabel(new Model("Province")));

    this.add(new PaysDropDownChoice("pays", new PropertyModel(
        this.personne, "pays")).setLabel(new Model("Pays"))
        .setRequired(true));

    this.add(new RequiredTextField("codePostal", new PropertyModel(
        this.personne, "codePostal"))
        .setLabel(new Model("Code postal")));

    this.add(new RequiredTextField("telephone", new PropertyModel(
        this.personne, "telephone"), Telephone.class)
    {
      /**
       *
       */
      private static final long serialVersionUID = -1622892079642695231L;

      @Override
      public IConverter getConverter()
      {
        return new MaskConverter("###-###-####", Telephone.class);
      }
    }.setLabel(new Model("Telephone")));

    this.add(new SexeDropDownChoice("sexe", new PropertyModel(
        this.personne, "sexe")).setLabel(new Model("Sexe"))
        .setRequired(true));
    this.add(new AnneesDropDownChoice("annees", new PropertyModel(
        this.dateNaissance, "annee")).setLabel(new Model("Annees"))
        .setRequired(true));
    this.add(new MoisDropDownChoice("mois", new PropertyModel(
        this.dateNaissance, "mois")).setLabel(new Model("Mois"))
        .setRequired(true));
    this.add(new JoursDropDownChoice("jours", new PropertyModel(
        this.dateNaissance, "jour")).setLabel(new Model("Jours"))
        .setRequired(true));

    final RequiredTextField courriel = new RequiredTextField("courriel",
        new PropertyModel(this.personne, "courriel"));
    courriel.setLabel(new Model("Courriel")).setRequired(true);
    courriel.add(EmailAddressPatternValidator.getInstance());
    this.add(courriel);
  }
View Full Code Here

    this.createComponents();
  }

  private void createComponents()
  {
    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));
View Full Code Here

  }

  public void createComponent()
  {

    this.add(new RequiredTextField("username", new PropertyModel(this,
        "username")).setLabel(new Model("Username")));
    this.add(new PasswordTextField("password", new PropertyModel(this,
        "password")).setLabel(new Model("Password")));
    this.add(HomePage.link("inscription", CreationComptePersonnePanel.class, null));
    this.add(HomePage.link("motPasseOublie", RetrievePassword.class, null));
View Full Code Here

    this.add(HomePage.link("ajouterEvenement",
        GestionEvenementsPanel.class, params).setVisible(!this.isNew));
   
    //Affichage des propriétés de la saison
    this.add(new RequiredTextField("nom"));
    this.add(new RequiredTextField("annee"));
    this.add(new CheckBox("active"));

    //Bouton cancel (Lien vers Liste saisons)
    params = new HashMap<Enum, Object>();
    params.put(Parameters.SELECTED_ITEM, null);
View Full Code Here

    this.createComponent();
  }

  public void createComponent()
  {
    this.add(new RequiredTextField("courriel", new PropertyModel(this, "courriel")));
    final FeedbackPanel feedback = new FeedbackPanel("feedback");
    this.add(feedback);
  }
View Full Code Here

  {
    this.add(new Label("prenom", new PropertyModel(this.updatePersonne,
        "prenom")));
    this.add(new Label("nom", new PropertyModel(this.updatePersonne, "nom")));

    this.add(new RequiredTextField("adresse", new PropertyModel(
        this.updatePersonne, "adresse")).setLabel(new Model("Adresse")));
    this.add(new RequiredTextField("ville", new PropertyModel(
        this.updatePersonne, "ville")).setLabel(new Model("Ville")));
    this.add(new RequiredTextField("province", new PropertyModel(
        this.updatePersonne, "province")).setLabel(new Model("Province")));
    this.add(HomePage.link("cancel", DisplayPersonnePanel.class,
        this.session.getUser().getPersonneOidMap()));
    this.add(new PaysDropDownChoice("pays", new PropertyModel(
        this.updatePersonne, "pays")).setLabel(new Model("Pays"))
        .setRequired(true));

    this.add(new RequiredTextField("codePostal", new PropertyModel(
        this.updatePersonne, "codePostal")).setLabel(new Model(
        "Code postal")));

    this.add(new RequiredTextField("telephone", new PropertyModel(
        this.updatePersonne, "telephone"), Telephone.class)
    {
      private static final long serialVersionUID = -1622892079642695231L;

      @Override
      public IConverter getConverter()
      {
        return new MaskConverter("###-###-####", Telephone.class);
      }
    }.setLabel(new Model("Telephone")));

    this.add(new Label("sexe", new PropertyModel(this.updatePersonne, "sexe")));
   
    this.add(new Label("dateNaissance", new PropertyModel(this.updatePersonne, "dateNaissance")));

    final RequiredTextField courriel = new RequiredTextField("courriel",
        new PropertyModel(this.updatePersonne, "courriel"));
    courriel.setLabel(new Model("Courriel")).setRequired(true);
    courriel.add(EmailAddressPatternValidator.getInstance());
    this.add(courriel);
   
    this.add(new PaysDropDownChoice("nationalite", new PropertyModel(
        this.updatePersonne, "nationalite")).setLabel(new Model("nationalite"))
        .setRequired(true));
View Full Code Here

TOP

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

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.