lblFrench.setVisible(true);
lblEnglish.setVisible(false);
if (session.isUserLoggedIn())
{
Compte compte = session.getCompte();
compte.setLangue(Locale.ENGLISH.getLanguage());
compteService.save(compte);
}
this.setResponsePage(getPage());
}
};
linkEnglish.add(lblEnglish);
this.add(linkEnglish);
final Link linkFrench = new Link("linkFrench")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
session.setLocale(Locale.FRENCH);
lblFrench.setVisible(false);
lblEnglish.setVisible(true);
if (session.isUserLoggedIn())
{
Compte compte = session.getCompte();
compte.setLangue(Locale.FRENCH.getLanguage());
compteService.save(compte);
}
this.setResponsePage(getPage());
}