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