PDA

View Full Version : [CLOSED] [beta2] ComboBox's getValue() returns display text, not value



winnie
29 May 2008, 2:15 PM
I set explicitly the name of value and display fields:

final ComboBox field = new ComboBox();
setTextFieldAttrs(field, fd);
field.setStore(makeStore(fd));
field.setValueField("name");
field.setDisplayField("label");

Still, field.getValue() returns displayed text, not value.

darrellmeyer
3 Jun 2008, 7:22 AM
ComobBox now uses generics and setValue and getValue are typed.