footh wrote:
I figured out the pure java way to accomplish this.
You can create a class that implements the
WidgetValidator interface. Then you do your
validation logic in the "validate" method.
To add the validator to a widget in your javaflow, you
use something like this:
form.getChild("username").addValidator(new
LoginValidator());
exactly
where LoginValidator is the class the implements
WidgetValidator.
The only problem I seem to be having is the new
ValidationError I create is not translating in i18n
even though I have the translation value set to true.
does your form rendering pipepine has <map:transform type="i18n"/> ?
do you have a message catalogue defined?
--
Leszek Gawron [EMAIL PROTECTED]
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]