Library Version:
SmartGWT 2.4
GWT 2.1.1
Firefox 3.6.8
Hi,
I am having an issue with ComboBoxItem where the value which is selected from the drop down list is reset to the defaultValue as soon as any other component is clicked on any other form or panel.
I have added event handlers to it to see if it is ever receiving the change event and noticed that some handlers are never called.. I have tested the following:
ChangeHandler - never called
ChangedHandler - never called
FocusHandler - called
ClickHandler - called
I assume the fact that it is not receiving events has something todo with it resetting..
The code to create the ComboBoxItem is as follows:
this is then added to a forum and then to a DynamicForm which in turn is added to a HLayout.. There are many different ComboBoxItems in the application but all of them are located on different Form's.. I don't know if this matters or not but i'm trying to give as much info as possible..
I am using firefox 3.6.8 and have also tested in Chrome (i know there is an issue with ComboBoxItem in Chrome even with the latest GWT update where google were supposed to have it fixed in 2.1 -- i have commented here about this http://code.google.com/p/smartgwt/issues/detail?id=386 )..
There are no errors or warnings whatsoever produced in any console...
Any help is greatly appreciated..
Thanks,
SmartGWT 2.4
GWT 2.1.1
Firefox 3.6.8
Hi,
I am having an issue with ComboBoxItem where the value which is selected from the drop down list is reset to the defaultValue as soon as any other component is clicked on any other form or panel.
I have added event handlers to it to see if it is ever receiving the change event and noticed that some handlers are never called.. I have tested the following:
ChangeHandler - never called
ChangedHandler - never called
FocusHandler - called
ClickHandler - called
I assume the fact that it is not receiving events has something todo with it resetting..
The code to create the ComboBoxItem is as follows:
Code:
LinkedHashMap<String, String> values = new LinkedHashMap<String, String>(); values.put("Low", "Low"); values.put("Medium", "Medium"); values.put("High", "High"); ComboBoxItem item = createComboBoxItem("Test", "Low", values); DynamicForm form = new DynamicForm(); form.setNumCols(2); form.setWidth100(); form.setTitleWidth("*"); form.setFields(item); .... public static ComboBoxItem createComboBoxItem(String title, String defaultItem, LinkedHashMap<String, String> values) { ComboBoxItem item = new ComboBoxItem(); item.setTitle(title); item.setTitleAlign(Alignment.LEFT); item.setWidth(95); item.setAddUnknownValues(false); item.setValueMap(values); item.setDefaultValue(defaultItem); return item; }
this is then added to a forum and then to a DynamicForm which in turn is added to a HLayout.. There are many different ComboBoxItems in the application but all of them are located on different Form's.. I don't know if this matters or not but i'm trying to give as much info as possible..
I am using firefox 3.6.8 and have also tested in Chrome (i know there is an issue with ComboBoxItem in Chrome even with the latest GWT update where google were supposed to have it fixed in 2.1 -- i have commented here about this http://code.google.com/p/smartgwt/issues/detail?id=386 )..
There are no errors or warnings whatsoever produced in any console...
Any help is greatly appreciated..
Thanks,
Comment