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

Bug 367688

Summary: Cannot append children element for box defined in widget
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: hjiyong, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The sample project. none

Description fahua jin CLA 2012-01-01 08:45:01 EST
Build Identifier: EDT 0.7 GA build

Please setup the attached projects, and open the H1.egl with VE. 

If you click the "Call function in handler" button, then the widget can be appended into the Box. Invoke the same logic defined in the widget, nothing happened. 

Reproducible: Always
Comment 1 fahua jin CLA 2012-01-01 08:46:00 EST
Created attachment 208896 [details]
The sample project.
Comment 2 Brian Svihovec CLA 2012-01-12 15:06:35 EST
I believe this is working as designed.

function Button1_onClick(event Event in)
        TestWeidget TestWeidget{};
        TestWeidget.test();
    end

The TestWeidget instance is never being appended to the document, so I would not expect its internal box to be displayed.  

Does the following change resolve the issue?

function Button1_onClick(event Event in)
        TestWeidget TestWeidget{};
        TestWeidget.test();
        Box.appendChildren([TestWeidget]);
    end
Comment 3 fahua jin CLA 2012-01-12 19:35:06 EST
Brian, you're right.Thanks.

But we'll still have some test cases for test the widgets in M1 testing, because it has not been carefully tested in EDT 0.7.
Comment 4 fahua jin CLA 2012-01-12 19:35:21 EST
Close the defect.