On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?

Ernesto


On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner <eschrei...@yahoo.com> wrote:
> Dear all,
>
> I would like to perform form validation using Ajax before the user actually 
> submits the form, similar to Ajax-based field validation. I have added an 
> implementation of AbstractFormValidator to the form, and an Ajax behavior 
> that sends the current data to the server triggered by the "onchange" event.
> My problems are:
> 1. The form validator gets called and can process the current form fields, 
> but I do not see how to refresh the feedback panel properly.
> 2. What is the best practice to trigger form validation? Currently, I call 
> getForm().onFormSubmitted() from within setObject() of my model, which in 
> turn gets called from the "onchange" Ajax behavior, but to call 
> onFormSubmitted() is discouraged in the javadoc.
>
> TIA for any feedback :-)
> Erich

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to