On Fri, 11 Apr 2014 09:39:05 -0300, Jon Williams <williams.jonat...@gmail.com> wrote:

hi,

Hi!

    private Object onSelectedFromRegister() {
        if (registerForm.getHasErrors()) {
            return this;
        }

I'm not sure that's related to your problem, but don't return "this" in event handler methods unless you really want to force a redirection to the same page. You can return null instead.

        alertManager.alert(Duration.SINGLE, Severity.SUCCESS, messages.format("success", emailAddress));
        alertManager.alert(Duration.SINGLE, Severity.INFO, messages.format("success", emailAddress));
        alertManager.alert(Duration.SINGLE, Severity.ERROR, messages.format("success", emailAddress));

        emailAddress = null;
        return formZone;
    }

I'm not sure that's related to your problem, but don't return a Zone instance in an event handler method. Return formZone.getBody() instead.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

Reply via email to