title: How to write a custom converter for <p:pickList>
body: <p>How can I write a custom converter when working with PrimeFaces components that use a list of POJO? My particular problem is with <code>&lt;p:pickList&gt;</code></p>
  
  <pre><code>&lt;p:pickList converter="????" value="#{bean.projects}" var="project" 
                               itemLabel="#{project.name}" itemValue="#{project}"&gt;
  </code></pre>
  
  <p>Without a converter I get <code>java.lang.ClassCastException</code> because JSF sets the submitted values with unconverted <code>java.lang.String</code> submitted values.</p>