Hi Eddy,
that's very weird, since the true or false of the validate() method
is based on:
return 0 == countValidationErrors();
Can you give me the details of what the validation errors collection
contains?
Thanks,
Geert
On 20-jan-06, at 17:37, Eddy Young wrote:
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
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users