Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360382 - "Disable" does NOT work for CheckBox
Summary: "Disable" does NOT work for CheckBox
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-10-10 02:23 EDT by Yu Hao CLA
Modified: 2017-02-23 14:15 EST (History)
3 users (show)

See Also:


Attachments
fix (3.84 KB, patch)
2011-10-24 02:07 EDT, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Hao CLA 2011-10-10 02:23:25 EDT
Build Identifier: 201110082101

The property of "Disable" for CheckBox does not work in preview nor deploy mode

Reproducible: Always
Comment 1 Huang Ji Yong CLA 2011-10-12 05:33:42 EDT
This is a JSGen defect.
The generation for Checkbox.egl is wrong
        function setDisabled(disabled Boolean in)
		check.disabled = disabled;
		span.disabled = disabled;
	end

generated js is:
"setDisabled": function(disabled) {
   this.check.disabled = disabled; // should be this.check.setDisabled(disable)
   this.span.disabled = disabled; // The same as the last line
}
Comment 2 Yu Hao CLA 2011-10-13 02:12:41 EDT
The property "disable" for widget "List" only works in preview mode of internal browser. It does not work in preview with external browser and deploy mode
Comment 3 Yu Hao CLA 2011-10-13 03:44:16 EDT
ListMutli has the same issue with List
Comment 4 Huang Ji Yong CLA 2011-10-24 02:06:07 EDT
The checkbox problem is a js gen problem.
But the list/listMulti disabled is not a problem, it is just a display difference across browsers.

Scott, please review my patch.
Thanks.
Comment 5 Huang Ji Yong CLA 2011-10-24 02:07:09 EDT
Created attachment 205780 [details]
fix
Comment 6 Scott Greer CLA 2011-10-24 10:26:27 EDT
Ji Yong,

Fix looks good -- please commit....thanks!
Comment 7 Huang Ji Yong CLA 2011-10-24 21:41:56 EDT
Fixed
Comment 8 Yu Hao CLA 2011-11-02 01:44:36 EDT
Verified in 201111012101