title: JSF command button enable/disable based on JSF check box using javascript
body: <p>I am using RichFaces and I want to <strong>enable/disable</strong> <code>h:commandButton</code> based on <code>h:selectBooleanCheckbox</code> using Javascript. By default the button should be disabled and check box unchecked. The button should be enabled when the check box is selected and disabled when the check box is deselected. </p>
  
  <p>Any help would be greatly appreciated.</p>