Wicket 6 uses jQuery.on() to register the event listeners.
If your AjaxSubmitLink listens on 'click' then
jQuery('#theSubmitLinkId').triggerHandler('click') should do it.
Also check the docs of jQuery#trigger

On Thu, Dec 6, 2012 at 1:53 AM, Jered Myers <jer...@maplewoodsoftware.com>wrote:

> The link here is actually an AjaxSubmitLink and not an AjaxLink.  I am
> trying to get back to the onSubmit on the server side.  I saw
> http://apache-wicket.1842946.**n4.nabble.com/Wicket-6-Ajax-**
> Behaviors-td4654398.html<http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Behaviors-td4654398.html>,
> but $(mylink).triggerHandler('**click') doesn't seem to be working. Do I
> treat the trigger on an AjaxSubmitLink different from a regular AjaxLink?
> On 12/05/2012 03:28 PM, Jered Myers wrote:
>> Wicket 6.3
>> How do I call a click event on an AjaxLink from via jQuery or JavaScript?
>>  I have an AjaxLink that I have added to the page and after I run some
>> JavaScript, I want to pragmatically click the link with JavaScript.  This
>> broke when updating from Wicket 1.5 to 6.  It appears that the onclick
>> attribute is no longer on my link and I am not sure how to call the events
>> that Wicket has registered in the head.

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

Reply via email to