Re: Overriding wicket-ajax-jquery.js

2015-10-01 Thread avchavan
What's happening now is the custom js is being loaded first hence i am getting reference error. Is there a way that the ajax js gets loaded after wicket's jquery and event js? -- View this message in context:

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
We don't have time to upgrade and do a full cycle of testing of the entire application again :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672062.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
not working. I added alerts inside the method to see if it gets called, but in vein. I hope my changes are correct, here's what i changed: Wicket.Event.add(window, "unload", function() { var WTH = Wicket.TimerHandles; if (WTH) { for (var th

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Martin Grigorov
Why don't you upgrade to 6.20.0 ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 30, 2015 at 12:08 PM, avchavan wrote: > not working. > I added alerts inside the method to see if it gets called, but in vein. > I hope my

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
so, call timer.stop() before download finishes? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672071.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
The counter doesn't stop now, but i can see javascript errors in firebug: ReferenceError: Wicket is not defined Wicket.Class = { , TypeError: Wicket.Throttler is not a constructor throttler: new Wicket.Throttler(true), & TypeError: Wicket.Ajax.DebugWindow is undefined

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Tobias Soloschenko
Hi, because there are no API breaks an upgrade to Wicket 6.20.0 should only consist of changing the maven pom.xml. All changes of Wicket 6.20.0 are listed in the release notes - so testing the affected components should be all you need to do. I think this is better then implementing some

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
I dont see setWicketJQueryReference, but there is setJQueryReference. I hope you meant setJQueryReference only :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672070.html Sent from the Users forum mailing list archive at

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Martin Grigorov
Please explain in more details what you have done and what is the order of .js files in your page. It is hard for us to tell what is wrong from just "it doesn't work". Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 30, 2015 at 2:45 PM, avchavan

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
This is what i get from view page source. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672067.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Martin Grigorov
oh, right. See application.getJavaScriptLibrarySettings().setWicketJQueryReference() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 30, 2015 at 2:50 PM, avchavan wrote: > or may be if there is a way to discard

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Martin Grigorov
On Wed, Sep 30, 2015 at 2:51 PM, avchavan wrote: > > > This is what i get from view page source. > It looks OK. I guess you need to unregister the old listener before registering the new one. > > -- > View this message in context: >

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread Martin Grigorov
I actually mean #setWicketAjaxReference() https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/settings/JavaScriptLibrarySettings.java#L91 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 30, 2015 at 2:56 PM, avchavan

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
The problem is we have to deliver tomorrow and the application is BIG, so testing it wont be possible and we wont get a go ahead. is there any alternative apart from upgrade (even a dirty one would do for time being). -- View this message in context:

Re: Overriding wicket-ajax-jquery.js

2015-09-30 Thread avchavan
or may be if there is a way to discard wicket-ajax-jquery.js used by wicket and use a duplicate (with the unload event)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-wicket-ajax-jquery-js-tp4672051p4672066.html Sent from the Users forum mailing list

Re: Overriding wicket-ajax-jquery.js

2015-09-28 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5822 is fixed in 6.20.0 too But yes, you could use "monkey patching" to override it locally too. Please search for "monkey patch javascript" in the web. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 28,

Overriding wicket-ajax-jquery.js

2015-09-28 Thread avchavan
Hi, I am using AjaxSelfUpdatingTimerBehavior in my application which is for session timeout kinda functionality. Also i have a Download functionality using DownloadLink. The AjaxSelfUpdatingTimerBehavior doesnt work after i download a file. I saw a JIRA created for similar issue:

Re: Overriding wicket-ajax-jquery.js

2015-09-28 Thread avchavan
I am not too good with Javascript. What i did is made a duplicate file locally for wicket-ajax-jquery.js and modified "beforeunload" to "unload". Imported this duplicate file at the end (just before the Head tag closes). But it doesn't work. -- View this message in context:

Re: Overriding wicket-ajax-jquery.js

2015-09-28 Thread Martin Grigorov
Time to become better with JavaScript! ;-) Fire the debugger and see what happens. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 28, 2015 at 12:56 PM, avchavan wrote: > I am not too good with Javascript. > What i did is