Package wicket.model

Examples of wicket.model.PropertyModel


  protected void createComponents(final Cart cart)
  {

    this.add(new ConfirmationListView("confirmationListView", cart));

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

    this.add(new Button("confirmer")
    {

      private static final long serialVersionUID = 0L;
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 Label("commenditaire", new PropertyModel(this.cart,
        "commenditaire")));
    item.add(new Label("club", new PropertyModel(clubCtrl
        .getClubByOid(this.cart.getClubOid()), "nomComplet")));

  }
View Full Code Here

  protected void populateItem(final ListItem item)
  {
    final Inscription inscription = (Inscription) item.getModelObject();

    item.add(new Label("evenementNom",
        new PropertyModel(inscription.getCourse().getEvenement(), "nom")));
    item.add(new Label("discipline", new PropertyModel(inscription.getCourse(),
        "nom")));
    item.add(new Label("date", new PropertyModel(inscription.getCourse(), "date")));
    item.add(new Label("categorieNom", new PropertyModel(inscription.getCategorie(), "nom")));

  }
View Full Code Here

      throw new SystemeException(e.getMessage());
    }
    item.add(HomePage.link("selection", DisplayPlaquePersonne.class, map));
   
    //Série de labels divers...
    item.add(new Label("plaqueUnique", new PropertyModel(infoSaison, "plaqueUnique")));
    item.add(new Label("prenom", new PropertyModel(infoSaison.getPersonne(), "prenom")));
    item.add(new Label("nom", new PropertyModel(infoSaison.getPersonne(), "nom")));
    item.add(new Label("pays", new PropertyModel(infoSaison.getPersonne(), "pays")));
  }
View Full Code Here

    }
    else
    {
      item.add(new Label("prix", ""));
    }
    item.add(new CheckBox("estPresent", new PropertyModel(line, "participante")));
   }
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

  private void displayCompte()
  {
    if (this.compte != null)
    {
      this.add(new Label("username", new PropertyModel(this.compte,
          "username")));
      if (this.session.EstAdmin())
      {
        this.add(HomePage.link("updatePasswordAdmin",
            UpdatePasswordPanel.class, this.parameters).setVisible(
View Full Code Here

    }
  }

  private void displayPersonne()
  {
    this.add(new Label("nom", new PropertyModel(this.personne, "nom")));
    this
        .add(new Label("prenom", new PropertyModel(this.personne,
            "prenom")));
    this.add(new Label("adresse", new PropertyModel(this.personne,
        "adresse")));
    this.add(new Label("ville", new PropertyModel(this.personne, "ville")));
    this.add(new Label("province", new PropertyModel(this.personne,
        "province")));
    this.add(new Label("pays", new PropertyModel(this.personne, "pays")));
    this.add(new Label("codepostal", new PropertyModel(this.personne,
        "codePostal")));
    this.add(new Label("telephone", new PropertyModel(this.personne,
        "telephone")));
    this.add(new Label("sexe", new PropertyModel(this.personne, "sexe")));
    this.add(new Label("dateNaissance", new PropertyModel(this.personne,
        "dateNaissance")));
    this.add(new Label("courriel", new PropertyModel(this.personne,
        "courriel")));
    this.add(new Label("nationalite", new PropertyModel(this.personne,
    "nationalite")));
  }
View Full Code Here

  }

  private void createComponent()
  {
    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

  private void createComponents()
  {

    final PasswordTextField currentPassword = new PasswordTextField(
        "currentPassword", new PropertyModel(this.password,
            "currentPassword"));
    currentPassword.setLabel(new Model("Mot de passe actuel "));
    currentPassword.setResetPassword(false);
    this.add(currentPassword);

    final PasswordTextField newPassword = new PasswordTextField("newPassword",
        new PropertyModel(this.password, "newPassword"));
    newPassword.setLabel(new Model("Nouveau mot de passe"));
    newPassword.setResetPassword(false);
    this.add(newPassword);

    final PasswordTextField confirmPassword = new PasswordTextField(
        "confirmPassword", new PropertyModel(this.password,
            "confirmPassword"));
    confirmPassword.setLabel(new Model(
        "Confirmation du nouveau mot de passe"));
    confirmPassword.setResetPassword(false);
    this.add(confirmPassword);
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.