Instead of calling form.submit() from your jQuery, call 
${‘#someButtonID’}.click() or whatever, then register your event under the 
button’s onClick in Wicket.
You can have that button shared, or you can write your own Behavior to submit 
the form via a hidden button (i.e.: X and Y coordinates set to negative so it’s 
way off the page as well as its display property set to hidden).

Those are just couple of ideas.

On Jun 13, 2014, at 11:45 AM, vp143 <vishal.po...@cipriati.co.uk> wrote:

> Paul Bors wrote
>> 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?
> 
> You are right, I missed that but I am still a little stumped on what to do.
> 
> I am assuming the form gets submitted when calling 
> jQuery("#selectionForm").submit()
> 
> I was assuming this part
> add(new AjaxFormSubmitBehavior(this, "onsubmit") { 
> would be waiting for the submit of the form and then get executed.
> 
> Have I understood correctly?
> What am I missing?
> 
> Regards
> Vishal
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Ajax-Form-Submit-via-jquery-plugin-javascript-tp4666170p4666257.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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

Reply via email to