title: Vaadin set combo box value after it has been filled
body: <p>My instance of the combo box is created globally, It gets filled with, lets say a list of companies while the value is an ID. After I load a File, I want to check that I have that value in the combo box and then select it programmatically.</p>
  
  <pre><code>class cComboBoxFun extends UI implements ClickListener
  {
    ComboBox cb_company;
    List&lt;cCustomer&gt; ListCust;
  
    //default constructor and server conf not really relevant
  
    @Override
  protected void init(VaadinRequest request) 
  {
        //Lets assume the list has been filled already
        cb_company = new ComboBox("Company");
  
        for(cCustomer cust : ListCust)
        {
          cb_company.addItem(cust.mgetId);
          cb_company.setItemcaption(cust.mgetId, cust.mgetName);
        }
  
  
      }
  
      class cCustomer()
      {
        private String name;
        private String Id;
  
        public String GetName() 
        {
          return this.name
        }
  
         // Same for id
  
      }
  </code></pre>
  
  <p>I tried checking the value is there and setting it but nothing happens. I looked up but couldn't find an answer</p>
  
  <pre><code>if(cb_company.getItemCaption(value) != null)
      cb_company.set(value);
  </code></pre>