Hi all, I'm new to Tapestry, and I have a problem with a simple Login form. When in the OnSubmit callback of the form, the login and pasword fields are empty. Could someone help me at least understand why? Here is my loginForm class:
public class LoginForm { @Persist(PersistenceConstants.FLASH) private String loginMessage; @Property private String loginEmail; @Property private String loginPassword; @Component private Form loginForm; @Inject private Authenticator authenticator; public Object onActionFromLoginForm() { try { authenticator.login(loginEmail, loginPassword); return Index.class; } catch (AuthenticationException ex) { setLoginMessage("Invalid user name or password."); } return null; } public void setLoginMessage(String loginMessage) { this.loginMessage = loginMessage; } public String getLoginMessage() { if (loginMessage != null) { return loginMessage; } else { return " "; } } } here is the loginForm template ${loginMessage} -- View this message in context: http://tapestry.1045711.n5.nabble.com/null-property-tp3411636p3411636.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org