CoboBox.setForceSelection(true) not working?
I don't want my users to enter text in a ComboBox manually. As described in the JavaDoc, the property ForceSelection==true is used to force a selection instead of any text. But nothing changed after calling combo.setForceSelection(true).
GWT 1.5 M2 on Windows XP
Ext GWT 1.0 Beta 3
Thanks for your help.
I forgot to say, that the SelectedValue doesn't change by editing the text. The SelectedValue is always the last selected item. You can't deselect a selected item.
1. Force selection was not implemented. It is now. However, force selection allows the text to be edited. When the field loses focus, the value is forced to be value in the list. If there is not a match, the text is returned to its previous value or cleared.
2. setEditable(false) stops a user from enterering text and works in beta 3.
3. The value was not updated when entering text and leaving the field. This is fixed.
Changes are in SVN.
Thank you, setEditable(false) works fine
Thanks. That's gonna help me too