the behavior is attached to the child form component, why would it
call validate on the parent? you will have to do that yourself.

-igor

On Tue, Mar 9, 2010 at 3:52 PM, Tony Wu <[email protected]> wrote:
> I have a FormComponentPanel which holds 3 dropdowns for month-day-year (it's
> a birthday FormComponentPanel). I override convertInput on the
> FormComponentPanel to return the age based on the 3 drop downs. I have an
> age validator which makes sure they're over 18.
>
> Now, this all works fine on form submit (convertInput gets called and it
> runs the validator).
>
> But when I try to do it dynamically by attaching a onchange
> AjaxFormUpdatingBehavior event to the 3 drop downs to call
> FormComponentPanel.validate() (@Override onUpdate, and only when all 3 drop
> downs are selected of course), I know the onchange triggers (because it's
> @Override onUpdate runs - had a system.out.println which runs), but the
> validate() function doesn't run the age validator. It actually *never even
> calls convertInput* on the FormComponentPanel. Any ideas?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to