Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363427

Summary: Can Could not render UI while open the RUI Handler attached
Product: z_Archived Reporter: Song Fan <songfan>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, mayunf, xiaobinc
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
PI
none
BorderContainer.egl none

Description Song Fan CLA 2011-11-10 02:33:08 EST
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
Comment 1 Yun Feng Ma CLA 2011-11-10 04:09:14 EST
This is BorderContainer's issue, it should have a method namded "layout". Please see GridLayout for this. Thanks.
Comment 2 Xiao Bin Chen CLA 2011-11-10 05:20:25 EST
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.
Comment 3 Song Fan CLA 2011-11-10 19:25:23 EST
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.
Comment 4 Tony Chen CLA 2011-11-10 21:53:32 EST
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.
Comment 5 Yun Feng Ma CLA 2011-12-14 01:07:56 EST
Created attachment 208365 [details]
BorderContainer.egl

This is not a product issue. I've attached a updated BorderContainer which works fine.
Comment 6 Yun Feng Ma CLA 2011-12-14 01:08:45 EST
Resolved this, as it's not a product issue. Thanks.
Comment 7 Song Fan CLA 2012-01-19 01:01:14 EST
the new EGL works fine