ComboBox call twice setter

Hello, i have a problem with the ComboBox component. When the value change it call two time de setter method, the first with the value selected and the second time with invalid value.

ComboBox select = new ComboBox("Select");
select.addItem("1");
select.addItem("2");
select.setItemCaption("1", "Option");
select.setItemCaption("2", "Option");

MethodProperty<AbstractComponentContainer> selectProperty = new MethodProperty<AbstractComponentContainer>(this, "id");
select.setPropertyDataSource(selectProperty);

select.setImmediate(true);		
main.addComponent(select);

Thanks,

-Felipe

I guess the problem is in setItemCaption with the same caption “Option”. If i put “Option 1” “Option 2” the setter is called one time.

Yes - the client side part of ComboBox (VFilterSelect) does not really support multiple identical captions well, at least with filtering.