javierdotnet / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 2 forks source link

TextField setDisabled(true), but use getDisabled() returns false, The reason is com.gwtext.client.widgets.form.Field doesn't override isDisabled() #471

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. if I create a textfield, when this textfield is created and before 
rendered.
2. In this case, I set disabled to true, Field.setDisabled() will be 
triggered.
3. but when I use isDisabled() to get the status, Component.isDisabled() 
is triggered and it returns false.

What is the expected output? What do you see instead?
if I set disabled to true, the isDisable() should always return true.
The com.gwtext.client.widgets.form.Field should override isDisabled() and 
do the right judgement.
Please use labels and text to provide additional information.

I use GWT-Ext2.0.4, but I find the newest GWT-Ext2.0.6 has this problem 
too.

Original issue reported on code.google.com by sharemet...@gmail.com on 4 Feb 2009 at 2:50