hi, all.
too many ItemChangedEvent raised by Clicking RadioGroupItem.
try following code, clicking "yes" radio, ItemChanedEvent fired twice.
and Window.alert() shows two FormItem object names,
$5400(i suspect it is garbage) and isc_RadioGroupItem_0.
i'm now using latest version of SmartGWT-2.5(2011-06-05) and GWT-2.3.0.
IE9 and Chrome 11.0.696.71.
no javascript error.
very truly yours.
too many ItemChangedEvent raised by Clicking RadioGroupItem.
try following code, clicking "yes" radio, ItemChanedEvent fired twice.
and Window.alert() shows two FormItem object names,
$5400(i suspect it is garbage) and isc_RadioGroupItem_0.
Code:
DynamicForm dynamicForm = new DynamicForm(); dynamicForm.setAutoHeight(); dynamicForm.setAutoWidth(); final RadioGroupItem radioGroupItem = new RadioGroupItem(); LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); map.put("0", "yes"); map.put("1", "no"); radioGroupItem.setValueMap(map); dynamicForm.setFields(new FormItem[] { radioGroupItem } ); dynamicForm.addItemChangedHandler(new ItemChangedHandler() { @Override public void onItemChanged(ItemChangedEvent event) { Window.alert(event.getItem().getName()); } });
IE9 and Chrome 11.0.696.71.
no javascript error.
very truly yours.
Comment