Hello,

I'm trying to get around this for some time, so I decided to ask another
newcomer question.

I have a form in a page "resgistration"

Registration.tml

<form t:type="form" t:id="registrationForm">
<t:errors/>

[Rest of the form]
</form>

in my Registration.java I have:

void onValidateForm() {

if (!this.password.equals(this.confirmPassword)) {

registrationForm.recordError("Password match error"); ///Line 1
}
 }

Object onSubmitFromRegistrationForm() {
 successPage.setRegisteredUser(user);
return successPage;

}


The problem is that on onValidateForm I record the error in line:

registrationForm.recordError("Password match error");

I checked and is the line is being executed, but the process keep going to
the onSubmitRegistrationForm() and the new page "successPage" is rendered...

If I go back to the page "registration", the errors are displayed....


Shouldn't the form be displayed again in this case with the errors?

Thank you

Reply via email to