Tony, If you don't mind submitting the whole form add "AjaxFormSubmitBehavior"s to the appropriate child components .
Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 9 March 2010 23:52, Tony Wu <e90t...@gmail.com> 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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org