Package wicket.model

Examples of wicket.model.PropertyModel


  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


  {
    final CartItem cartItem = (CartItem) item.getModelObject();
    Tarification tarification = catPartCtrl.getTarificationByOid(cartItem
        .getTarificationOid().getUniqueNumber());

    item.add(new Label("evenementNom", new PropertyModel(tarification
        .getCourse().getEvenement(), "nom")));
    item.add(new Label("discipline", new PropertyModel(tarification
        .getCourse(), "nom")));
    item.add(new Label("courseDate", new PropertyModel(tarification
        .getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(cartItem, "prix")));

    item.add(new RemoveCheckBox("selected", cartItem));

  }
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

    private static final long serialVersionUID = -594911944357902184L;

    public RemoveCheckBox(final String id, final CartItem cartItem)
    {
      super(id, new PropertyModel(cartItem, "markedForRemoval"));
    }
View Full Code Here

        .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

  protected void populateItem(final ListItem item)
  {
    final Tarification tarification = (Tarification) item.getModelObject();

    item.add(new Label("evenement",
        new PropertyModel(tarification.getCourse().getEvenement(),
        "nom")));
    item.add(new Label("discipline",
        new PropertyModel(tarification.getCourse()"nom")));
    item.add(new Label("categorie",
        new PropertyModel(tarification.getCategorie(), "nom")));
    item.add(new Label("date",
        new PropertyModel(tarification.getCourse(), "date")));
    item.add(new Label("prix", new PropertyModel(tarification, "prix")));
    item.add(new Radio("radio", item.getModel()));

  }
View Full Code Here

  protected void createComponents()
  {

    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());
    dropDownChoice.setRequired(false);
    this.add(dropDownChoice);

    this.add(new Button("payer")
View Full Code Here

  @Override
  protected void populateItem(final ListItem item)
  {
    final Course course = (Course) item.getModelObject();

    item.add(new Label("evenement", new PropertyModel(course.getEvenement(),
        "nom")));
    item.add(new Label("endroit", new PropertyModel(course.getEvenement(),
        "Endroit")));
    item.add(new Label("discipline", new PropertyModel(course, "nom")));
    item.add(new Label("date", new PropertyModel(course, "date")));

    final Map<String, Course> map = new HashMap<String, Course>();
    map.put("Course", course);

    try
View Full Code Here

  }

  protected void createComponents()
  {

    this.add(new Label("date", new PropertyModel(this, "date")));
    this.add(new Label("noConfirmation", new PropertyModel(this,
        "noConfirmation")));

  }
View Full Code Here

    final ClubLine line = (ClubLine) item.getModelObject();
    CheckBox checkBox;

    item.add(new Label("nomComplet", line.getNomComplet()));

    checkBox = new CheckBox("etat", new PropertyModel(line, "etat"));

    item.add(checkBox);
  }
View Full Code Here

TOP

Related Classes of wicket.model.PropertyModel

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.