boolean allowedValuesOnly = UIUtil.getBooleanConfigurationProperty(config, FormConstants.ALLOWED_VALUES_ONLY, true);
cb.setForceSelection(allowedValuesOnly);
if (! allowedValuesOnly) {
//Apparently we need to add this because the 'setForceSelection(boolean)' method
//is not doing what it suppose to by itself, and we need to enforce the raw value to be used.
cb.addListener(new ComboBoxListenerAdapter() {
@Override
public boolean doBeforeQuery(ComboBox comboBox, ComboBoxCallback cbcb) {
String lastQueried = comboBox.getRawValue();
//System.out.println("In doBeforeQuery. rawValue: " + lastQueried + " getValue: " + comboBox.getValue());
comboBox.setValue(lastQueried);