Community
Participate
Working Groups
The HTML generation template is gathering *all* referenced parts, but services and parts referenced by services should not be added to the include list. Steps to reproduce: have a RUIHandler reference a service (not an interface), and put a record field inside the service. Make sure the record only has the Java generator. Cannot load the page because it tries to load record.js which doesn't exist. Same is true for libraries. Also I noticied CommonUtilities.isUserPart() - which is wrong. There is nothing to stop a user from writing parts in packages "egl" or "eglx". You need to find some other way to determine if a part is built-in (check with Paul or Matt on this).
This problem is worse now. The latest code is trying to import .js files for interfaces and services, which do not exist. This renders the VE useless if invoking a service. I've put in a temporary workaround into EGLClassTemplate.java.
(In reply to comment #1) > This problem is worse now. The latest code is trying to import .js files for > interfaces and services, which do not exist. This renders the VE useless if > invoking a service. I've put in a temporary workaround into > EGLClassTemplate.java. Hi Justin, It seems your fix has resolved the problem. Can you confirm that? The remaining problem is how to determine a built-in part, I will check with Paul about that.
Hi JiYong, Your latest change backed out part of my temporary fix. It was just a temporary fix though, and I've put in a real fix that uses templates to do nothing in several methods for services and interfaces. The methods are: genOutputFileName genDependentParts genDependentIncludeFiles genDependentCSSs genDependentProps Interfaces and services do not have any of these files for inclusion in the HTML. I'm leaving this open as there is still the issue about determining if a part is user defined. If there is no good solution - as a last resort you could probably use ir.getFileName() and walk the source folders in the egl path to see if the file exists. It will be a path relative to the source folder.
Created attachment 204060 [details] Patch Here is a patch. Thanks.
Code committed
Verified