title: p:autoComplete itemLabel throws "The class 'java.lang.String' does not have the property 'label'."
body: <p>I'm changing from IceFaces to PrimeFaces (I really wanted to change to RichFaces but cause a bug in new version, I won't) and I'm havinng some dificults to implement correctly primefaces autoComplete. According to his manual I just need to implement a method that returns a list of objects, and in this case a converter is required.</p>
  
  <p>The list I'm returning is a list of javax.faces.model.SelectItem, I really can't understand why I need to create a converter to this, but lets continue. I've created a simple converter just to test, but primefaces don't recognizes my converter and returns this error in browser:</p>
  
  <blockquote>
    <p>/resources/components/popups/popupBuscaPessoa.xhtml @35,41 itemLabel="#{pessoa.label}": The class 'java.lang.String' does not have the property 'label'.</p>
  </blockquote>
  
  <p>This is my conversor class (just to test):</p>
  
  <pre><code>public class ConversorSelectItem implements Converter {
  
  @Override
  public Object getAsObject(FacesContext context, UIComponent component, String value) {      
       if (value!=null &amp;&amp; value.isEmpty())
           return null;
  
       SelectItem selectItem=new SelectItem();
       selectItem.setLabel(value);
       return selectItem;     
  }
  
  @Override
  public String getAsString(FacesContext context, UIComponent component, Object object) {
      return ((SelectItem)object).getLabel();
  }
  }
  </code></pre>
  
  <p>This is where I try use p:autocomplete:</p>
  
  <pre><code>&lt;p:autoComplete value="#{modeloPopupBuscaPessoa.itemSelecionado}"
              completeMethod="#{controladorSugestaoPessoa.atualizarSugestoes}"
              var="pessoa" itemLabel="#{pessoa.label}" itemValue="#{pessoa.value}"
              converter="#{conversorSelectItem}"/&gt;
  </code></pre>
  
  <p>Did I do something wrong? Isn't there a default converter for SelectItem? Is there a easier way to implement this converter?</p>