Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356890 - date type declaration will cause VE doesn't work
Summary: date type declaration will cause VE doesn't work
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 03:39 EDT by Xin Wu CLA
Modified: 2017-02-23 14:20 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Wu CLA 2011-09-07 03:39:25 EDT
Build Identifier: 20110907 nightly build

When add a declaration to RUI handler, the visual editor design view doesn't show anything.

Reproducible: Always

Steps to Reproduce:
1. Create a RUI handler
2. Drag & Drop a button to gridlayout
3. Switch to source view, move the button code before gridlayout code(this was a bug). 
4. Back to design view, the VE works well
5. Switch to source view ana add code "d date;" to declare a date variable.
6. Back to design view, the VE doesn't work.
Comment 1 Huo Zhen Zhong CLA 2011-09-08 01:54:53 EDT
This is caused by JS Generator problem:


Could not render UI
TypeError: Cannot call method 'currentDate' of undefined at [object Object].eze$$setInitial (H2.js:47:50) at new (H2.js:5:9) at [object Object].eze$$thisClass (egl.js:800:27) at H2.html?contextKey=13:77:22 at Function.eze$$loadScripts (H2.html?contextKey=13:53:3) at H2.html?contextKey=13:51:43 at HTMLScriptElement. (H2.html?contextKey=13:39:4)

Cannot call method 'currentDate' of undefined
[CRRUI2094E] Here are the EGL function calls leading to this error:

    Widget.Widget.getStyle() [native JavaScript]
    Widget.Widget.setDisplayStyle() [native JavaScript]

Uncaught TypeError: Cannot call method 'currentDate' of undefined
Test/com/H2.html?contextKey=13:95
[CRRUI2095E] Could not find the EGL function calls leading to this error
Comment 2 Scott Greer CLA 2011-09-19 14:50:13 EDT
Fixed.
Comment 3 Xin Wu CLA 2011-09-30 01:56:57 EDT
verified in 20110929