Vaadin update combobox values in a grid
<p>I have a Vaadin (7.6.7) grid, that shows a combobox when in editor mode. Another action can modify the items of the combobox, but the combobox in the grid does not update itself.</p>

<pre><code>public void setComboBoxAsEditor(Grid grid) {
  grid.getColumn("id").setEditorField(theBox).setConverter(new Converter&lt;String, String&gt;() {
    @Override
    public String convertToModel(String value, Class&lt;? extends String&gt; targetType, Locale locale) throws ConversionException {
        return value; // not sure for what this is required
    }

    @Override
    public String convertToPresentation(String value, Class&lt;? extends String&gt; targetType, Locale locale) throws ConversionException {
        // don't show the id, but the name
        A a = endpoint.getA(value);
        return a.getName();
    }

    @Override
    public Class&lt;String&gt; getModelType() {
        return String.class;
    }

    @Override
    public Class&lt;String&gt; getPresentationType() {
        return String.class;
    }
 });
}
</code></pre>

<p><code>theBox</code> is a Combobox that is filled before - the initial display is correct (it contains objects of type <code>A</code>)</p>

<p>Now another action manipulates the objects of type <code>A</code>, e.g. delete an object.</p>

<p>How can I update now the combobox in the grid ? </p>

<p>I tried </p>

<pre><code>public void upateCombobox() {
 theBox.removeAllItems();
 List&lt;A&gt; as = endpoint.getAs();
 theBox.setContainerDataSource(new BeanItemContainer&lt;&gt;(String.class, as.stream().map(A::getIdent).collect(Collectors.toList())));
 for (A each : as) {
    theBox.setItemCaption(a.getId(), a.getName());
 }
}
</code></pre>

<p>to call before, but when editing the grid, the <code>theBox</code> shows still the old values.</p>

<p>I tried to call <code>grid.getColumn("id").getEditorField().markAsDirty()</code>, but also no change</p>

<p>What do I miss ?</p>