PDA

View Full Version : Ext GWT 3.0 RC 2 - ComboBox Property Editor bug



k11
13 Apr 2012, 3:38 PM
The ComboPropertyEditor should use label provider instead of object.toString().




private class ComboPropertyEditor extends PropertyEditor<T> {
...
@Override
public String render(T object) {
return object == null ? "" : labelProvider.getLabel(object);
}
}

Colin Alworth
16 Apr 2012, 8:21 AM
Thanks - this has been called out in several posts in the Ext GWT 3 Bugs forum.

www.sencha.com/forum/showthread.php?195272-ComboBox-Major-issue-with-RC2-(shows-up-in-explorer-demo-too)
http://www.sencha.com/forum/showthread.php?195197-RC2-ComboBox-LabelProvider-not-used-consequently

ayanatsume
25 Apr 2012, 12:16 AM
The ComboPropertyEditor should use label provider instead of object.toString().




private class ComboPropertyEditor extends PropertyEditor<T> {
...
@Override
public String render(T object) {
return object == null ? "" : labelProvider.getLabel(object);
}
}


Hi Sir, i just want to ask if you still have alternative codes for this? The same function but different syntax? Thanks!