tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdelanno <vincent.delan...@gmail.com>
Subject null property
Date Sun, 06 Mar 2011 18:27:02 GMT
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 {
	private String loginMessage;
	private String loginEmail;
	private String loginPassword;
    private Form loginForm;

	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







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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

View raw message