Invient Charts Problem

I am failing to get the Invient Charts Add-on to work. If I pass the ?debug parameter to the Vaadin application I get the following error message:


JavaScriptException: (TypeError): Cannot read property 'Chart' of undefined
....
stacktrace
....
arguments: Chart,
type: non_object_property_load

I have overridden the ApplicationServlet class and added the -tags to writeAjaxPageHtmlVaadinScripts according to the Demo-application and, js and jquery directories to the WebContent directory in Eclipse and added invientcharts-0.8.2.jar to the classpath (i.e. WEB-INF/lib in WebContent)

Does anybody have a pointer to where/how I should start to debug? I am kind of stuck right now.

Regards
/Thobias

In the method writeAjaxPageHtmlVaadinScripts(), check if the src attribute of refer to the correct location of JavaScript files of Highcharts and jQuery.

It was a problem with the path to HighCharts. I had to put the .js-files in another place as the Vaadin-app was hiding it as it was.

I can see now that in the demo there is a redirect in index.jsp to the Vaadin app.

Thanks a lot for pushing me in the right direction.

Hi,

I am having the same problem.
Can you show me how your index.jsp looks like to show the right path?