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(
true));
this.add(HomePage.link("updatePassword",
UpdatePasswordPanel.class, this.parameters).setVisible(
false));
}
else
{
this.add(HomePage.link("updatePassword",
UpdatePasswordPanel.class, this.parameters).setVisible(
true));
this.add(HomePage.link("updatePasswordAdmin",
UpdatePasswordPanel.class, this.parameters).setVisible(
false));
}
}
else
{
this.add(new Label("username", "Ce membre n'a pas de compte"));
this.add(HomePage.link("updatePassword", UpdatePasswordPanel.class,
this.parameters).setVisible(false));
this.add(HomePage.link("updatePasswordAdmin",
UpdatePasswordPanel.class, this.parameters).setVisible(
false));