Re: How to call a Wicket Ajax click event

2012-12-06 Thread Martin Grigorov
Hi, 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.comwrote:

Re: How to call a Wicket Ajax click event

2012-12-06 Thread Jered Myers
I am able to make this work in a Quickstart, so there must be something else wrong. Thanks for the response Martin. Here is code if anybody wants an example: Java: AjaxLinkVoid standardAjaxLink = new AjaxLinkVoid(standardAjaxLink) { private static final long

How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers
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

Re: How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers
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, but $(mylink).triggerHandler('click') doesn't seem to be working. Do I treat