.obtenirPersonneAssociee();
final DropDownChoice dropDownChoice = new DropDownChoice(
"ddcPersonneAssociee", new PropertyModel(this,
"personneAInscrire"), personnesAssociees,
new PersonneChoiceRenderer());
dropDownChoice.setRequired(false);
final TextField email = new TextField("email");
//Gestion des inscriptions pour les membres d'un club dont la personne actuelle est le coach.
Radio radioCoach = new Radio("coachClubsMembers", new Model(
DelegateRegistrationMode.COACH));
List<Personne> clubMembers;
Compte coach = this.getXRaceSession().getCompte();
final DropDownChoice dropDownChoiceMembresClub;
final Label labelNomClub;
if (coach.getCoachOf() != null)
{
labelNomClub = new Label("clubName", coach.getCoachOf()
.getNomComplet());
radioCoach.setVisible(true);
clubMembers = clubService.find(coach.getCoachOf().getId())
.getMembres();
dropDownChoiceMembresClub = new DropDownChoice("ddcClubMembers",
new PropertyModel(this, "personneAInscrire"), clubMembers,
new PersonneChoiceRenderer());
}
else
{
labelNomClub = new Label("clubName", "");
radioCoach.setVisible(false);