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

Bug 363670

Summary: [MVC] DojoTimeBox has exception with MVC code
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: hjiyong, jspadea, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The sample EGL file.
none
Fix for the exception message lasher: iplog+

Description fahua jin CLA 2011-11-14 00:59:11 EST
Build Identifier: 0.7.0.v201111130901

Open the attached handler, below exception is thrown. Also, it's interesting that in my EGL source code, the pattern is "yyyyMMddHHmmssffffff", while in the exception stack, it prints 'yyyyMMddHHmmssSSSSSS'.

Could not render UI
[CRRUI2032E] 时间戳记模式 yyyyMMddHHmmssSSSSSS 无效
[CRRUI2094E] 以下是导致此错误的 EGL 函数调用:

    DojoTimeTextBox.DojoTextBase._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoValidationBase._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoTimeTextBox._setEvent() [native JavaScript]
    DojoTimeTextBox.DojoTextBase.installEventHandlers() [native JavaScript]
    DojoTimeTextBox.DojoValidationBase.installEventHandlers() [native JavaScript]
    DojoTimeTextBox.DojoTimeTextBox.installEventHandlers() [native JavaScript]

uncaught exception: [type=eglx.lang.AnyException, message=[CRRUI2032E] öô3°! yyyyMMddHHmmssSSSSSS àH]
:0
[CRRUI2095E] 未能找到导致此错误的 EGL 函数调用

Reproducible: Always
Comment 1 fahua jin CLA 2011-11-14 00:59:47 EST
Created attachment 206912 [details]
The sample EGL file.
Comment 2 fahua jin CLA 2011-11-14 01:19:01 EST
Set the defect severity to major.
Comment 3 Justin Spadea CLA 2011-11-14 09:24:26 EST
We're only using timestamp with this control because time is unsupported in 0.7. For 1.0 time will be back and this control will go back to using a time value instead of timestamp. Therefore there is the requirement, for 0.7, that you use the format "HHmmss" on your timestamp field if you wish to use it with the DojoTimeTextBox control.
Comment 4 fahua jin CLA 2011-11-15 00:57:54 EST
(In reply to comment #3)
> We're only using timestamp with this control because time is unsupported in
> 0.7. For 1.0 time will be back and this control will go back to using a time
> value instead of timestamp. Therefore there is the requirement, for 0.7, that
> you use the format "HHmmss" on your timestamp field if you wish to use it with
> the DojoTimeTextBox control.

Thanks Justin... 
But I'm curious that why I specified pattern yyyyMMddHHmmssffffff, while it prints yyyyMMddHHmmssSSSSSS in the error stack trace?
Comment 5 Justin Spadea CLA 2011-11-15 10:23:22 EST
The 'S' format in the error message is very minor, we won't fix that in 0.7.
Comment 6 Huang Ji Yong CLA 2011-12-14 01:00:47 EST
Created attachment 208364 [details]
Fix for the exception message
Comment 7 Huang Ji Yong CLA 2011-12-14 01:01:45 EST
Fix the problem mentioned in comment 4.
Comment 8 fahua jin CLA 2012-01-16 20:29:52 EST
Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4.