Community
Participate
Working Groups
Created attachment 206759 [details] PI Steps to reproduce: 1. Import the attached project 2. open /widgetlayout/EGLSource/layout/GridPanelDemo4.egl, VE works fine! 3. open /widgetlayout/EGLSource/layout/GridPanelDemoError.egl, the following error message is reported in design&preview tab Could not render UI ((void 0),(function () {if (superclazz) {superclazz.apply(this, arguments);}if (functions.constructor) {try {functions.constructor.apply(this, arguments);} catch (e) {egl.printError(egl.getRuntimeMessage("CRRUI2082E", [className]), e);throw e;}}this.toString = function () {try {var dataOutput = "type=" + this.eze$$package + "." + this.eze$$typename;if (this.eze$$DOMElemnt) {dataOutput = dataOutput + (", tagName=" + this.eze$$DOMElement.tagName + ",childCount=" + this.eze$$DOMElement.childNodes.length);}if (this instanceof egl.eglx.lang.AnyException) {dataOutput = dataOutput + (", message=" + this.message);}return "[" + dataOutput + "]";} catch (e) {return "[" + className + "]";}};})) edt_runtime.js:54 ([object Array]) BorderContainer.js?contextKey=20:341 () GridPanelDemoError.js?contextKey=20:82 () GridPanelDemoError.js?contextKey=20:14 () egl.js:801 () GridPanelDemoError.html?contextKey=20:80 ([object Array],(function () {egl.localeInfo = {locale: "en_US", nlsCode: "ENU", shortMask: "MM/dd/yyyy", mediumMask: "MM-dd-yyyy", longMask: "MM-dd-yyyy", currencySymbol: "$", decimalSeparator: ".", groupingSeparator: ","};try {egl.handleIDEEvent();egl.rootHandler = new (egl.layout.GridPanelDemoError);if (egl.rootHandler.targetWidget || !egl.rootHandler.egl$isWidget) {egl.rootHandler.setParent(egl.Document);} else {var package = egl.rootHandler.eze$$package;var typename = egl.rootHandler.eze$$typename;egl.rootHandler = egl.Document;egl.rootHandler.eze$$package = package;egl.rootHandler.eze$$typename = typename;}egl.startup();} catch (e) {egl.crashTerminateSession();if (!egl.layout.GridPanelDemoError) {egl.println("Internal generation error. Found no definition for layout.GridPanelDemoError. Try Project > Clean...", e);} else {egl.printError("Could not render UI", e);throw e;}}})) GridPanelDemoError.html?contextKey=20:54 () GridPanelDemoError.html?contextKey=20:52 ([object Event]) GridPanelDemoError.html?contextKey=20:40 obj is undefined [CRRUI2094E] Here are the EGL function calls leading to this error: BorderData.<init>() [native JavaScript] layout/BorderContainer.egl() at line 75 layout/GridPanelDemoError.egl() at line 20 layout/LayoutLib.egl() at line 10 () at line 54 obj is undefined widgetlayout/runtime/edt_runtime.js:54 [CRRUI2095E] Could not find the EGL function calls leading to this error
This is BorderContainer's issue, it should have a method namded "layout". Please see GridLayout for this. Thanks.
This is your widget problem, not dojobordercontainer problem. You need to follow some specification for container. Anyway this is not a problem of egl widget or dojo widget problem. So I closed this defect.
Please compare GridPanelDemo4.egl with GridPanelDemoError.egl The only one difference is the position of the definition of GridLayout. If this is a test case problem, GridPanelDemo4 should report the same error message.
I downgrade this to p3 and normal because writing a customized container widget is an advanced function. We can look at it after 0.7.
Created attachment 208365 [details] BorderContainer.egl This is not a product issue. I've attached a updated BorderContainer which works fine.
Resolved this, as it's not a product issue. Thanks.
the new EGL works fine