passwordPanel.add(passwordLabel);
password.setName("j_password");
passwordPanel.add(password);
Hidden returnTo = new Hidden("spring-security-redirect", "/login.html");
returnTo.setName("spring-security-redirect");
loginPanel.add(returnTo);
loginPanel.add(passwordPanel);
// rememberMe.setName("_spring_security_remember_me");
// loginPanel.add(rememberMe);
Hidden usePersistentLogon = new Hidden("_spring_security_remember_me", "on");
usePersistentLogon.setName("_spring_security_remember_me");
loginPanel.add(usePersistentLogon);
errorMessage.addStyleName(StaticResourceBundle.INSTANCE.coreCss().formErrorBox());
errorMessage.setVisible(false);