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();
        //Fill the component with some items.
        for (int i = 0; i < planets.length; i++)
            for (int j = 0; j < planets.length; j++) {
 + " to " + planets[i]
        mainLayout.addComponent(cbEducation, 1, 0);
        mainLayout.setComponentAlignment(cbEducation, new Alignment(33)); 

I hope someone can help me… anyways thanks for reading

Thanks in advance!


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!