http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/form/AjaxFormSubmitBehavior.html

"Ajax event behavior that submits a form via ajax when the event it is attached 
to, is invoked.”

You’re attaching the submit event so who fires that?

On Jun 10, 2014, at 5:28 AM, Vishal Popat <vishal.po...@cipriati.co.uk> wrote:

> Hi,
> 
> I am using a jquery steps plugin which has the ability to change options.
> One of the options I have is:
>               onFinished: function (event, currentIndex) {
>                    var form = document.forms["selectionForm"];
>                    form.submit();
>                },
> 
> The javascript above submits the associated form. However I would like to 
> submit the form via ajax. Normally I would use an AjaxButton for ajax 
> processing but in this case I need something else. I have tried
> 
> selectionForm.add(new AjaxFormSubmitBehavior(selectionForm, "onsubmit") {
>       @Override
>       protected void onSubmit(AjaxRequestTarget target) {
>               log.debug("******* ajax form submit");
>       }
> }
> 
> but this does not seem to work as the debug does not get outputted.
> Additionally, the onSubmit Form version is called. Is there a way to stop 
> this?
> 
> Let me know if should be using something else instead.
> 
> Regards
> Vishal
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

Reply via email to