title: GWT ValueListBox Editor
body: <p>I'm puzzled about how to use GWT's ValueListBox with an Editor.  I'm getting this ERROR:</p>
  
  <pre><code>The method setValue(String) in the type TakesValueEditor&lt;String&gt; 
  is not applicable for the arguments (List&lt;String&gt;)
  </code></pre>
  
  <p>Here's the relevant code.</p>
  
  <pre><code>public class MyBean {
      private List&lt;String&gt; dateFormats;
      public List&lt;String&gt; getDateFormats() {
          return dateFormats;
      }
      public void setDateFormats(List&lt;String&gt; dateFormats) {
          this.dateFormats = dateFormats;
      }
  }
  
  public interface MyBeanView extends IsWidget, Editor&lt;MyBean&gt; {
      @Path("dateFormats")
      IsEditor&lt;TakesValueEditor&lt;String&gt;&gt; getDateFormatEditor();
  }
  
  public class MyBeanViewImpl implements MyBeanView {
      @UiField(provided=true) ValueListBox&lt;String&gt; dateFormats;
  
      public MyBeanViewImpl() {
          dateFormats = new ValueListBox&lt;String&gt;(PassthroughRenderer.instance(),
                  new ProvidesKey&lt;String&gt;() {
                      @Override
                      public Object getKey(String item) {
                          return item;
                      }
          });
          dateFormats.setAcceptableValues(Arrays.asList(new String[] {"YYYY"}));
          // ... binder.createAndBindUi(this);
      }
  
      @Override
      public IsEditor&lt;TakesValueEditor&lt;String&gt;&gt; getDateFormatEditor() {
          return dateFormats;
      }
  }
  </code></pre>
  
  <p>Here's what's in ui.xml with xmlns:g='urn:import:com.google.gwt.user.client.ui'></p>
  
  <pre><code>  &lt;g:HTMLPanel&gt;
       Data Formats: &lt;g:ValueListBox ui:field="dateFormats"&gt; &lt;/g:ValueListBox&gt;
    &lt;/g:HTMLPanel&gt;
  </code></pre>
  
  <p>I'm surely missing something obvious here.  Much thanks.</p>