title: Conditionally render other component when radiobutton is changed
body: <p>I am trying to display a menu if a radiobutton is selected. I'm using the rendered attribute for this purpose. </p>
  
  <p>Model:</p>
  
  <pre><code>private int type; // +getter+setter
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;h:selectOneRadio value="#{bean.type}"&gt;
      &lt;f:selectItem itemLabel="A" itemValue="1"/&gt;
      &lt;f:selectItem itemLabel="B" itemValue="2"/&gt;
  &lt;/h:selectOneRadio&gt;
  &lt;h:form id="formMention" rendered="#{bean.type == 1}"&gt;
      &lt;h:selectOneMenu ...&gt;
          &lt;f:selectItems ... /&gt;
      &lt;/h:selectOneMenu&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Nothing shows when I check A. How can I achieve this?</p>