Sample List - Combp Box

In that sample we can type in for a search.
Is it possible to add what we are typing into a dropdown portion of the control, so later on we can save new entries into database.

Thanks

For a non-databound comboBox (optionDataSource is not set), if you have a user-entered value that you want to keep, you can create a new valueMap with the new value added and call setValueMap() to apply the new valueMap to the comboBox.