title: Disable/enable a JSF input component depending on value of another input component
body: <p>I have two radio buttons:</p>
  
  <pre><code>&lt;h:selectOneRadio value="#{bean.choice}"&gt;
      &lt;f:selectItem itemValue="yes" itemLabel="YES" /&gt;
      &lt;f:selectItem itemValue="no" itemLabel="NO" /&gt;
  &lt;/h:selectOneRadio&gt;
  
  &lt;p:calendar value="#{bean.date}" /&gt;
  </code></pre>
  
  <p>If the "no" button is selected, the text input field of the calendar should be disabled (greyed out). How can I do this?</p>