I’ trying to add a picker icon to a disabled TextItem to allow for some additional options being performed. But when i run the following code:
FormItem test = new TextItem("test", "i18n: Testing");
test.setOptionDataSource(DataSource.get("Test"));
test.setValueField("id");
test.setDisplayField("localizedLabel");
// Create the picker icon for the field
PickerIcon testPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() {
public void onFormItemClick(FormItemIconClickEvent event) {
SC.say("Testing");
}
});
testPicker.setNeverDisable(Boolean.TRUE);
test.setIcons(salesStatusPicker);
test.setDisabled(Boolean.TRUE);
And the picker icon still is no where to be found. Removing the disabled from the TextItem and the icon is shown as requested. Is the ‘never disabled’ flag ignored for some reason?
Greets and thanks in advance,
David
Environment details:
GWT version: 2.0.2
SmartGWT version: 2.2
Firefox: 3.6.2
OS: MacOS X 10.6.3