I get nice ajax validations on fields when using the @Validate-annotation
etc. 
I want that as well for cross-field validation, but instead I get the
'general' validation box in red above my form. 

I used the following validation-code to check if the two passwords supplied
are the same, and if not record an error to the password field: 

Object onValidateForm(){
                if(!user.getPassword().equals(user.getPasswordAgain())){
                        beanEditForm.recordError(password, "the two passwords 
supplied were not
the same"));
                }

Does this have to do with the 'ajax-validations' being bounded to a
particular field and the 'general validation' being bound to the form in
general (this is how it seems to me). 

Does anyone know how to get the nice ajax-validations on the above
validation as well? 
Thanks.
-- 
View this message in context: 
http://www.nabble.com/how-to-get-the-nice-ajax-form-validations-when-using-beaneditform.recordError%28%29-tp18328440p18328440.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to