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());
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.
--- Mark Lundquist <[EMAIL PROTECTED]> wrote:
> oops... my brain was tired and I didn't look closely
> enough at your
> post. Never mind... :-)
> ml
>
> On Aug 9, 2005, at 4:55 PM, Mark Lundquist wrote:
>
> > <map:flow language="java">
> > <map:script src=org.xyz.flow.SomeFlow"/>
> > <map:script src="forms/scripts/validators.js"/>
> > </map:flow>
>
> bah!
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]