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

Bug 358350

Summary: The read-only Combox for non-initialized int type has much of values added than RBD
Product: z_Archived Reporter: fahua jin <jinfahua>
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hjiyong, huozz, jspadea, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen shot none

Description fahua jin CLA 2011-09-21 02:48:59 EDT
Build Identifier: 0.7.0.v201109192102

1) Create an RUI handler
2) Declare following int type in the RUI handler.
   intType int;
3) In the EGL Data view, drag the intType and select Combox as the widget (read-only)
4) In the preview mode, click the button to expand the values for combox, you can find lots of empty lines are created. While the same scenario in RBD8012 only created 1 empty line.

Reproducible: Always
Comment 1 Huo Zhen Zhong CLA 2011-10-13 02:51:56 EDT
Created attachment 205088 [details]
screen shot
Comment 2 Huo Zhen Zhong CLA 2011-10-13 02:53:23 EDT
Change owner to Scott as it is a MVC problem. Please see screen shot.
Comment 3 Scott Greer CLA 2011-10-19 23:26:43 EDT
Brian,

Like the other combo box bugs, I think this one is working as far as MVC is concerned; however, it does generate a potentially confusing error when the combo box's values do not include the value being returned in the retrieveViewHelper.  This seems likely to be a problem either in the widget itself or in the MVC infrastructure (e.g., controller), rather than MVC generation.
Comment 4 Xiao Bin Chen CLA 2011-11-02 03:10:00 EDT
fixed.

The long blank empty line is because IE display multiple empty line if no <option></option> in tag <select></select>. So I think it works fine.

The error Scott mentioned was fixed, added null check of values in egl widget combo.
Comment 5 fahua jin CLA 2011-11-04 01:34:24 EDT
Verified in 0.7.0.v201111032101.