title: primefaces autocomplete selection returns null
body: <p>Autocomplete works fine, I mean when i write something it gets values from db and autocompletes but when i select the value, it shows selectedParty as null.By the way I am using this converter with selectOneMenu and it works fine, I can easily get selected value but there is a problem with autocomplete component.<br>
  my view;</p>
  
  <pre><code>&lt;p:autoComplete id="partySearchAutoId" value="#{myController.selectedParty}"
                                      var="party" itemLabel="#{party.partyName}"
                                      itemValue="#{party}" converter="genericConverter"
                                      forceSelection="true"                                        
                                      completeMethod="#{myController.searchParty}"&gt;
                          &lt;p:ajax event="itemSelect" update="soaInputTextId"/&gt;
                      &lt;/p:autoComplete&gt;
  </code></pre>
  
  <p>my controller;</p>
  
  <pre><code>    private Party selectedParty;
  
      public List&lt;Party&gt; searchParty(String query) {  
  
      List&lt;Party&gt; partyList = genericService.getByTemplate(new Party(), "partyName", query);
  
  
      return partyList;  
  }
  
  public Party getSelectedParty() {
      return selectedParty;
  }
  
  public void setSelectedParty(Party selectedParty) {
      this.selectedParty = selectedParty;
  }
  </code></pre>
  
  <p>Here is my converter;</p>
  
  <pre><code>@FacesConverter("genericConverter")
  public class GenericConverter extends SelectItemsConverter {
  
  @Override
  public String getAsString(FacesContext context, UIComponent component, Object value) {
      return value.toString();
  }  
  
  @Override
  public Object getAsObject(FacesContext context, UIComponent component, String value) {
      return super.getAsObject(context, component, value); //To change body of generated  methods, choose Tools | Templates.
   }
  
  
  
  }
  </code></pre>