title: ADF toggle required attribute from checkbox
body: <p>In my jsff file I have some input fields which are required by default. Now we want a way to toggle the required attribute using a checkbox. Several solutions have been tested, one of them like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;af:selectBooleanCheckbox id="sbc1" label="myLabel" value="#{sessionBean.skipInput}" autoSubmit="true"/&gt;
  
  &lt;af:selectOneChoice label="myLabel" id="soc1" partialTriggers="sbc1" value="#{sessionScope.sessionBean.someValue}" required="#{!sessionBean.skipInput}"&gt;
  
  &lt;f:selectItems value="#{applicationScope.applicationBean.myItems}" id="si1"/&gt;
  
  &lt;/af:selectOneChoice&gt;
  </code></pre>
  
  <p>When I check the checkbox to set the required attribute to false, the selectOneChoice will be red indicating that no value has been selected in the drowdown. How can I prevent this and simply remove the required attribute from the dropdown?</p>