title: Disabling items with PrimeFaces SelectOneMenu with custom content / p:column
body: <p>it seems as if it is not possible to disable items in a SelectOneMenu from PrimeFaces (3.3) when using the custom content (as shown at <a href="http://www.primefaces.org/showcase-labs/ui/selectOneMenu.jsf" rel="nofollow">http://www.primefaces.org/showcase-labs/ui/selectOneMenu.jsf</a>).</p>
  
  <p>The testcase is simple, just take the following:</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;p:selectOneMenu value="#{testBean.selected}"&gt;
          &lt;f:selectItems value="#{testBean.options}" var="t"
              itemLabel="#{t.label}" itemValue="#{t}"
              itemDisabled="#{t.value % 2 == 0 ? 'true' : 'false'}" /&gt;
      &lt;/p:selectOneMenu&gt;
  
      &lt;p:selectOneMenu value="#{testBean.selected}" var="x"&gt;
          &lt;f:selectItems value="#{testBean.options}" var="t"
              itemLabel="#{t.label}" itemValue="#{t}"
              itemDisabled="#{t.value % 2 == 0 ? 'true' : 'false'}" /&gt;
          &lt;p:column&gt;
              #{x.label} -- #{x.label}
          &lt;/p:column&gt;
      &lt;/p:selectOneMenu&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>and the following Java files:</p>
  
  <p>Bean:</p>
  
  <pre><code>@Named
  public class TestBean {
  
  private TestObject  selected;
  // getter/setter
  
  public List&lt;TestObject&gt; getOptions() {
      return Arrays.asList(new TestObject("1"), new TestObject("2")); }
  }
  </code></pre>
  
  <p>Object:</p>
  
  <pre><code>public class TestObject {
      private Integer value;
      // getter/setter
  
      public TestObject() {}
      public TestObject(String s) {
          this.setLabel(s);
      }
      public String getLabel() {return "label: " + value;}
      public void setLabel(String l) {this.value = new Integer(l);}
  }
  </code></pre>
  
  <p>The first dropdown works fine, the second one doesn't. Any idea on how to solve that?</p>