Hi,

I'm puzzled by the following piece of code not working.

            bean.resetValidation();

            if (!bean.validate()) {
                template.getBeanHandler().getFormBuilder().

getValidationBuilder().generateValidationErrors(template,
                            bean.getValidationErrors(), null, null);
            }

However,

            bean.resetValidation();
            bean.validate();
            Set errors = bean.getVlidationErrors();

            if (errors.size() > 0) {
                template.getBeanHandler().getFormBuilder().

getValidationBuilder().generateValidationErrors(template,
                            bean.getValidationErrors(), null, null);
            }

Why does validate() not return false when there are errors?

Regards,

Eddy
--
http://coding.mu
http://priscimon.com/blog

_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to