Community
Participate
Working Groups
It may be confusing for new users that there are warnings in the includDojo.html file. There are warning because the paths to CSS, etc in this file are not correct because the file is processed at runtime as if it were in the root (WebContent). From Ji Yong on RTC work item 61783: The warning happens because the relative path of url is different in development and deploy mode. For example, <script src="dojo/dojo.js"></script> has warning, because the url should be ../dojo/dojo.js in development mode. But after deployed, the content of this includeDojo.html file will be pasted to the generation page html, which the correct url should be dojo/dojo.js So if we change the url to eliminate the warning, the deployed url will be wrong!! Proposed changed: Why can't the file be moved to "WebContent" (from WebContent\config) so the paths in the file resolve properly in the IDE? This would avoid making any changes to the contents of the file. The file is only referenced by DojoBase.egl, so the code changes are small. Ji Yong's response to this proposal: The proposal works well. The changes we have to make: 1. com.ibm.egl.rui.dojo.widgets_1.0.0/EGLSource/dojo/widgets/DojoBase.egl, update the link to includeDojo.html ExternalType DojoBase extends Widget type JavaScriptObject { relativePath = "dojo/widgets", javaScriptName = "DojoBase", includeFile = "includeDojo.html" // The only change } 2. In all 3 runtimes, move includeDojo.html from WebContent/config to WebContent. (see IBM internal defect 1783 for additional details)
Hi Will, Check in latest build 0.8.0.v201202190901, includeDojo.html file has been removed under WebContent/config folder, and all related files have been updated, no warning message in this file now. This should have been resolved by other enh or bug. Thanks.
Did both remote and local get updated with this fix?
When was this change made?
So sorry for this, I think I misunderstand this. I reopen this bug and will resolve it in I3. Thanks.
Created attachment 211309 [details] Move includeDojo.html from 'WebContent/config' to 'WebContent' Hi Brian, please help to review if the changes are made correctly. Thanks. What have been done there: 1. Move includeDojo.html file from 'WebContent/config' to 'WebContent' folder in local and remote runtime. 2. Modify 'includeFile' parameter in 'DojoBase.egl' and 'DojoLib.egl' includeFile = "config/includeDojo.html" To - includeFile = "includeDojo.html"
I need to review the code in more detail, but it would be best if Ji Yong reviews this patch, since he wrote this code originally (or has modified it since it was written).
I'm cool with this change.
Hi Brian, any comment? Thanks.
The changes look good to me.
Committed
Thanks. :)