Javacsript module problem

2018-03-25 Thread Erich Gormann
Dear all, From a java class I load a js module and try to invoke a method in it using the following line: javaScriptSupport.require("hotel/loadingIndicatorTrigger").invoke("showLoadingIndicator"); The script file loadingIndicatorTrigger.js is in src/main/resources/META-INF/modules/hotel/load

Re: requirejs question

2018-03-25 Thread Erich Gormann
Thak you Dmitry, I ill give it a try! Regards, Erich Am 24.03.2018 14:51, schrieb Dmitry Gusev: Hi Erich, one example of using jQuery in inline scripts can be: require(['jquery'], function($) { }); I would suggest to replace inline scripts

Re: requirejs question

2018-03-25 Thread Erich Gormann
Hi Ilya, Ok, thanks so far. One problem reamains: according to requirejs it should be no problem with shim to support the use of already existing browser global scripts. I tried to do so by adding this line to our border component tml: And putting this script under the js folder of my app: