Editable ComboBox with default options

Hi everyone .

I’m new Vaadin developer and I’m having a little problem that I hope can resolve here.

Actually I have a one combobox with some data with one filter that find some matches so… I need to enter new values of user that needs in the combobox. The problem is I can’t enter new values, because when I do my filter is deleting my new proposal.

My code…

//Select select_editable = new Select();
        ComboBox cbEducation = new ComboBox();
        cbEducation.setTextInputAllowed(true);
        cbEducation.setNewItemsAllowed(true);
        cbEducation.setFilteringMode(AbstractSelect.Filtering.FILTERINGMODE_CONTAINS);
        //Fill the component with some items.
        for (int i = 0; i < planets.length; i++)
            for (int j = 0; j < planets.length; j++) {
                cbEducation.addItem(planets[j]
 + " to " + planets[i]
);
            }
        //select_editable.
        mainLayout.addComponent(cbEducation, 1, 0);
        mainLayout.setComponentAlignment(cbEducation, new Alignment(33)); 
[/i]

I hope someone can help me… anyways thanks for reading

Thanks in advance!
[i]

[/i]

The answer to myself, to add new values immediate I need to set my combobox with one method that is .setImmediate(true) then we can see the new entered value immediately.

Anyways thanks for view!