| Summary: | The external type widgets added into a box causing VE error | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | fahua jin <jinfahua> | ||||||
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | chenzhh, hjiyong, huozz, svihovec | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
fahua jin
Created attachment 204134 [details]
The sample project.
Created attachment 205090 [details]
screen shot
If open the handler in extra browser shown in screen shot, you will fond that it is a JS Gen defect, so change to owner to Scott. This may have been fixed indirectly, but at this point it looks like the remaining issues are with the test case.
The .js file for SimpleDiv should have the following content at the top:
egl.defineWidget(
'org.eclipse.samplewidget', 'SimpleDiv', // this class
'eglx.ui.rui', 'Widget', // the super class
'div', // dom element type name
{
"constructor" : function() {
this.eze$$DOMElement.style.backgroundColor="yellow";
this.eze$$DOMElement.innerHTML = "My default text values";
},
note that defineClass has become defineWidget, a super class has been added, a widget type (div) has been added, and the document.createElement line was removed from the constructor.
defer for now, but see the comment above that this is likely a test case problem. Need to correct the testcase & rerun, and hopefully close this defect. The sample should change according Brian in comment 4. After making the change, the problem is gone. Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4. |