}
@Override
public final void onSubmit()
{
final SignInSession session = (SignInSession) this.getSession();
if (session.authenticate(this.getUsername(), this.getPassword()))
{
// If login has been called because the user was not yet
// logged in, than continue to the original destination,
// otherwise to the Home page
if (!this.continueToOriginalDestination())
{
// setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
// getApplication().getHomePage(), (PageParameters)null));
final Map<String, Object> map = new HashMap<String, Object>();
map.put("Oid", session.getUser().getPersonneOid());
this.setResponsePage(new HomePage(BienvenuePanel.class, map));
}
}