title: Retrieve class values from selectCheckboxMenu
body: <p>I have a <code>&lt;p:selectCheckboxMenu&gt;</code> and I want to get the selected values back in bean. But the value I receive 
  when I select an item from the menu it's a string, representing the type field from the <code>CategorizationBean</code>.
  I just want when I select an item from the table, to get the whole <code>CategorizationBean</code> structure in the bean.</p>
  
  <p>This is the snippet from the xhtml page:</p>
  
  <pre><code>&lt;p:selectCheckboxMenu label="Categorization"  
                        value="#alertMB.selectedCategories}" 
                        converter="com.converter.CategoryConverter"&gt;
  
      &lt;f:selectItems value="#{alertMB.categoryDomainEntry}"
                     var="category"
                     itemLabel="#{category.type}"
                     itemValue="#{category}"/&gt; 
  &lt;/p:selectCheckboxMenu&gt;
  </code></pre>
  
  <p>Snippet from bean:</p>
  
  <pre><code>public List&lt;CategorizationBean&gt; getSelectedCategories() {
          return selectedCategories;
  }
  
  public void setSelectedCategories(List&lt;CategorizationBean&gt; selectedCategories) {
      this.selectedCategories = selectedCategories;
  }
  
  public class CategorizationBean implements Serializable{
      private String type;
      private long id;
  </code></pre>