private void initContent() {
@SuppressWarnings("serial")
Form<UsernamePassword> loginForm = new Form<UsernamePassword>("loginForm") {
@Override
protected void onSubmit() {
AuthenticatedWebSession session = AuthenticatedWebSession.get();
if (session.signIn(user.getUsername(), user.getPassword())) {
setDefaultResponsePageIfNecessary();
} else {
error(new StringResourceModel("error", this, null).getString());
}
}