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

Bug 366667

Summary: The child of TitlePane dropped to the VE cannot display in the VE
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, hjiyong, huozz, smythew
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix lasher: iplog+

Description fahua jin CLA 2011-12-14 01:57:58 EST
Build Identifier: 0.7 GA build

1) Drag a TitlePane to VE.
2) In the default generated code for TitlePane, there is a child Div. But the Div can neither be displayed in VE nor in outline view.
3) If update the Div as following, then it can be displayed in the VE.

Original is,
...children = [ new Div { } ] ...

Change to,
...children = [ new Div {innerHTML = " "} ] ...

Reproducible: Always
Comment 1 Will Smythe CLA 2011-12-14 11:10:32 EST
This is important as it's impacting the database access tutorial.
Comment 2 Huo Zhen Zhong CLA 2011-12-30 01:36:12 EST
This is caused by a wrong js generation by js gen, has worked with Ji Yong to make out a fix. Ji Yong will check in the code solve the defect.
Comment 3 Huang Ji Yong CLA 2011-12-30 03:25:40 EST
Created attachment 208866 [details]
fix
Comment 4 Huang Ji Yong CLA 2011-12-30 03:27:56 EST
Add a temporary variable for the embedded widget created by new expression as RBD did.
We may consider only generate such way in VE mode to avoid temporary variables in generated js which can be categorized to be the theme of js gen optimization theme of 0.8.0
Comment 5 fahua jin CLA 2012-01-16 21:15:33 EST
Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4.