title: Primefaces selectOneMenu listener not called with Objects other than Strings
body: <p>I'm implementing a webapp using Jsf 2.0 and Primefaces 3.2.
  I've noticed this unexpected behavoiur: I have a <code>selectOneMenu</code> and a <code>commandButton</code>, as below</p>
  
  <pre><code>&lt;p:selectOneMenu id="selsel" value="#{bean.myObj}"&gt;
    &lt;f:selectItems value="#{bean.myObjList}" /&gt;
  &lt;/p:selectOneMenu&gt;
  &lt;p:commandButton id="btnid" value="Ok" actionListener="#{bean.updateSelectValues()}" /&gt;
  </code></pre>
  
  <p>What happens is that if <code>myObj</code> is not a <code>String</code>, the <code>updateSelectValues</code> method is not called. I can't see any exception or error at all, it's just not called. Here's the backing bean:</p>
  
  <pre><code>private List&lt;MyObj&gt; myObjList;
  private MyObj myObj;
  // getters and setters
  
  public void updateSelectValues() {
    System.out.println(this.myObj);
  }
  </code></pre>
  
  <p>The code for myObj:</p>
  
  <pre><code>public class MyObj implements Serializable {
  
    private static final long serialVersionUID = 1L;
  
    private String param1;
    private int param2;
  
    @Override
    public String toString() {
      StringBuilder builder = new StringBuilder();
      builder.append("MyObj [param1=");
      builder.append(this.param1);
      builder.append(", param2=");
      builder.append(this.param2);
      builder.append("]");
      return builder.toString();
    }
  
  }
  </code></pre>