Replacement for dojo jazz.core.loader ?
I have a custom Rational Team Concert extension that requires in other custom dojo (javascript) files (in the same directory). All of These files are using the modern AMD syntax. I am using Rational Team Concert 6.0.1
Reading the documentation has lead me to a jazz file that I can import in.
dojo.require("jazz.core.loader");
https://jazz.net/wiki/bin/view/WebUIBook/DynamicCodeLoading
This is working as expected, however, when I run Rational Team Concert in debug mode, I get an JS alert message stating that this module is deprecated and will soon be removed. If that is the case, then what is the replacement for this ? If I require in my custom dojo js files like a normal dojo widget file, I get a console error saying "Unresolved module with id: id.of.my.custom.dojo.js.file". However my custom files get loaded anyways.
I found some similar problems with custom dojo files that are in AMD, see this thread. https://jazz.net/forum/questions/171336/modern-dojoamd-notation-causing-troubles-widget-creation-with-ibm-modules
One answer
If you are worried that your code may not work in the future when the Dojo framework is upgraded within CLM, you probably don't need to. From what I can gather, the Dojo framework within CLM is not going to change any time soon - the last major upgrade request that I can find is back in 2014.
In fact, there was a request to add AMD support but it was rejected.
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/335394
Comments
Jonas Studer
Feb 20 '17, 2:33 a.m.Jonas Studer
Feb 20 '17, 2:45 a.m.