title: How to rendered <p:selectOneMenu>
body: <p>I am unable to rendered a selectOneMenu but only to disable the item</p>
  
  <p>for example this is working:</p>
  
  <pre><code>&lt;p:panel header="Field Chooser"&gt;  
      &lt;h:panelGrid columns="2" cellpadding="5"&gt;  
          &lt;p:selectOneMenu id="l1" value="#{acqBean.gb1}"&gt;  
              &lt;f:selectItem itemLabel="Group By" itemValue="" /&gt;  
              &lt;f:selectItems value="#{acqBean.level1}" /&gt;  
              &lt;p:ajax update="l2" listener="#{acqBean.handleGroupChange}"/&gt;  
          &lt;/p:selectOneMenu&gt;  
          &lt;p:selectOneMenu id="l2" value="#{acqBean.gb2}" disabled="#{acqBean.renderLevel2}"&gt;  
              &lt;f:selectItems value="#{acqBean.level2}" /&gt;  
          &lt;/p:selectOneMenu&gt;  
      &lt;/h:panelGrid&gt;  
      &lt;p:separator /&gt; 
  &lt;/p:panel&gt; 
  
  
  public void handleGroupChange() {
      if (gb1 != null &amp;&amp; !gb1.equals("")) {
          level2 = level2Data.get(gb1);
          renderLevel2 = false;
      } else {
          level2 = new HashMap&lt;String, String&gt;();
          renderLevel2 = true;
      }
  }
  </code></pre>
  
  <p>and this one not:</p>
  
  <pre><code>&lt;p:selectOneMenu id="l2" value="#{acqBean.gb2}" rendered="#{acqBean.renderLevel2}"&gt;  
              &lt;f:selectItems value="#{acqBean.level2}" /&gt;  
          &lt;/p:selectOneMenu&gt; 
  </code></pre>
  
  <p>Any advice please</p>
  
  <p>Thanks</p>