title: selectOneMenu with complex objects, is a converter necessary?
body: <p>Is a Converter necessary for a <code>&lt;h:selectOneMenu&gt;</code> or <code>&lt;p:selectOneMenu&gt;</code> with arbitrary user-created classes as its values? I mean, is the following code supposed to work without a converter?</p>
  
  <pre><code>&lt;p:selectOneMenu value="#{bean.language}"&gt;
      &lt;f:selectItems value="#{bean.allLanguages}" /&gt;
  &lt;/p:selectOneMenu&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@Named(value = "bean")
  @ConversationScoped
  public class Bean {
  
      private Language language; // appropriate getter and setter are present
  
      public List&lt;SelectItem&gt; getAllLanguages() {
          // populates a list of select items with Strings as item labels and Languages as item values
      }
  
  }
  </code></pre>
  
  <p>I have a similar code with an <code>enum</code> as the type (Language) and it works perfectly. But when I replace the type with a normal java class, I get a conversion error.</p>