Skip to content

Highcharts Feature: Different JQuery and Highcharts Versions

Alexander Nedomansky edited this page Mar 27, 2018 · 1 revision

Supported by:


Sometimes it may be necessary to override the javascript depencencies that come with the Wicked Charts components, because you already have a different version of highcharts or jQuery in your project.

Using Wicket

The Wicket components manage their javascript dependencies themselves. If you need to change one of the dependencies, simply call one of the setter methods on JavaScriptResourceRegistry. This should be done once per application start, for example in the init method of your Wicket application class:

JavaScriptResourceRegistry.getInstance().setHighchartsReference(...);
JavaScriptResourceRegistry.getInstance().setHighchartsExportingReference(...);
JavaScriptResourceRegistry.getInstance().setHighchartsMoreReference(...);
JavaScriptResourceRegistry.getInstance().setJQueryReference(...);

Using JSF

Using JSF, you have to manually include the javascript dependencies in your HTML anyway, so it's your choice which javascript files to include.