|
|
|
Re: How about Charts? [message #1760829 is a reply to message #1760804] |
Wed, 03 May 2017 08:37   |
Eclipse User |
|
|
|
Hey Mattias,
I am trying to follow that code, but I might be missing a piece of magic:
I created : src/main/js/chart-module.js
(function(scout, $, undefined) {
__include("chart/Chart.bundle.min.js");
__include("chart/ChartField.js");
__include("chart/ChartAdapter.js");
__include("chart/ChartFieldLayout.js");
}(scout, jQuery));
But I am getting : [nio-8080-exec-5] o.e.s.r.u.html.script.ScriptFileLocator : locate /res/chart-module.js: does not exist (no library, macro or source module)
And I am seeing in application-all.js
// --- /res/chart-module.js ---
// !!! NOT PROCESSED
This makes sense, because by default src/main/js isn't getting bundled (as far as I know).
So I moved it to src/main/resources/WebContent/res
and I see in application-all.js that the file is included, but then I get a javascript error :
// --- LIBRARY /res/chart-module.js ---
(function(scout, $, undefined) {
__include("chart/Chart.bundle.min.js"); // <== ReferenceError: Can't find variable: __include
__include("chart/ChartField.js");
__include("chart/ChartAdapter.js");
__include("chart/ChartFieldLayout.js");
}(scout, jQuery));
I also did a fresh clone from : https://github.com/BSI-Business-Systems-Integration-AG/SpringBoot-and-EclipseScout/tree/6.1.x/org.eclipse.scout.springboot
Ran the application and I also get in the log:
2017-05-03 14:35:05.487 WARN 71454 --- [nio-8080-exec-4] o.e.s.r.u.html.script.ScriptFileLocator : locate /res/spring-security-module.less: does not exist (no library, macro or source module)
2017-05-03 14:35:05.528 WARN 71454 --- [nio-8080-exec-6] o.e.s.r.u.html.script.ScriptFileLocator : locate /res/spring-security-module.js: does not exist (no library, macro or source module)
Any help would be greatly appreciated.
Ries
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11582 seconds