Re: Custom Errors on Bean Edit Form

2008-12-15 Thread Thiago H. de Paula Figueiredo
Em Mon, 15 Dec 2008 17:10:43 -0300, Olle Hallin escreveu: For example like this (very simplified): @Component private Form myForm; // links to @Component private PasswordField password1; // links to Object onSuccess() { if (passwords unequal) { myForm.recordError(password1, "Passwor

Re: Custom Errors on Bean Edit Form

2008-12-15 Thread Olle Hallin
For example like this (very simplified): @Component private Form myForm; // links to @Component private PasswordField password1; // links to Object onSuccess() { if (passwords unequal) { myForm.recordError(password1, "Passwords does not match"); return null; } // else proceed with

Custom Errors on Bean Edit Form

2008-12-15 Thread Charles Mason
Hi All, I have a fairly straight forward bean edit form on a page. Its a create new user form so, I want to check the user doesn't already exist and that the two password fields match. I do this validation in the onSubmit method but I am struggling to use the error reporting mechanism to inform th