Hi,

Use org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onAfterSubmit if you
want to execute something *after* Form#onSubmit()


On Sun, Feb 17, 2013 at 8:15 PM, Gonzalo Aguilar Delgado <
gagui...@aguilardelgado.com> wrote:

> Hello Sven,
>
> Yes. I added this to the form, and a eventhandler to the button, but the
> event handler of the button is always called before the submit.
>
> The problem is that I cannot process the onclick handler of the button
> without the information of the form.
>
> So I think I need to submit it on the onclick handler, but how?
>
> Thank you in advance.
>
>
> El vie, 15-02-2013 a las 11:07 +0100, Sven Meier escribió:S
> venO
> n 02/15/2013 11:01 AM, Gonzalo Aguilar Delgado wrote:
>
> > > Hello,
> > >
> > > We have just a situation were the information of the form needs to be
> > > updated before handling an ajax "click" event.
> > >
> > > The page has a form, with a bean and some TextFields that update the
> > > properties in the bean.
> > > It has also an ajax component that also updates the bean.
> > >
> > > The problem is that we can fill in the form but if we do an event on
> the
> > > ajax component every field filled in first step is lost because is not
> > > submitted (and the bean updated) before handling the ajax click event.
> > >
> > >
> > > So the question is:
> > >
> > > How can we submit the form before handling the click event?
> > >
> > > Any suggestion?
> > >
> > > Thank you in advance.
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to