Wherever I click on clearPicker or editPicker I get "Edit" message.
in case I put PickerIcons in the reverse order:
"Edit" message appears for editPicker and "Clear" for clearPicker.
Is looks like SmartGWT bug.
1. SmartClient Version: SNAPSHOT_v9.0d_2013-05-23/LGPL Development Only (built 2013-05-23)
2. IE8, FF21
Code:
final PickerIcon clearPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() { public void onFormItemClick(FormItemIconClickEvent event) { SC.say("Clear"); } }); final PickerIcon editPicker = new PickerIcon(new Picker("icons/16/iso/edit.png"), new FormItemClickHandler() { public void onFormItemClick(FormItemIconClickEvent event) { SC.say("Edit"); } }); final SelectItem item = new SelectItem("item"); ... item.setIcons(clearPicker, editPicker);
Code:
item.setIcons(editPicker, clearPicker);
Is looks like SmartGWT bug.
1. SmartClient Version: SNAPSHOT_v9.0d_2013-05-23/LGPL Development Only (built 2013-05-23)
2. IE8, FF21
Comment