kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

Allow some of the wicked-charts dependencies to be configured #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Run wicked-charts inside a project that uses a different version of jQuery.

What is the expected output? What do you see instead?
Both the wicked-charts and the project specific jQuery functions should work. 
However there is a conflict in the client side API that makes them both to stop 
functioning.

For more details see:
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-td4652308.h
tml#a4654886

What version of the product are you using? On what operating system?
1.3.1 on Windows 7

Please provide any additional information below.
It would be nice if the client could change some of the hardcoded values such 
as JavaScriptResourceRegistry.DEFAULT_JQUERY_URL or have an API that exposes 
those settings.

To make this work I had to edit the private 
Behavior.includeJavascriptDependencies() and install the artifact in my local 
maven repository.

Original issue reported on code.google.com by p...@bors.ws on 18 Dec 2012 at 4:27

GoogleCodeExporter commented 9 years ago
Hi Paul,

it is already possible to override the Javascript dependencies by calling 
JavaScriptResourceRegistry.getInstance().setJQueryReference() for example. 
There are some other setter methods to override other javascript dependencies.

I will include a description of this in the wiki pages shortly.

Please try to include your project specific version of jquery this way. If it 
doesn't work, let me know.

Regards,
Tom

Original comment by tom.homb...@gmail.com on 18 Dec 2012 at 7:42

GoogleCodeExporter commented 9 years ago
Bummer, sorry... I skipped over JavaScriptResourceRegistry.getInstance().
Thanks for the heads up! :)

Original comment by p...@bors.ws on 18 Dec 2012 at 8:35