title: JSF 2.0; Validator tag "disabled" depends on value from page
body: <p>In my jsf application i want to validate a field which should only be validated, when one option in a SelectOneRadio is checked.</p>
  
  <p>I found out, that <code>&lt;f:validator&gt;</code> has an attribute, called "disabled".</p>
  
  <p>Can i use this, to check the value from another field?</p>
  
  <p>I tried, but i haven't access to the value from my bean.</p>
  
  <pre><code>&lt;h:selectOneRadio value="#{myBean.checkedSelectOneRadioValue}"&gt;
      &lt;f:selectItems value="#{myBean.valuesForSelectOneRadio}" /&gt;
  &lt;/h:selectOneRadio&gt;
  
  
  &lt;f:validator validatorId="myValidator" disabled="#{myBean.checkedSelectOneRadioValue == 'TEST'}" /&gt;
  </code></pre>
  
  <p>Is there any way to reach that without writing own validatorhandler?</p>
  
  <p>Thanks!</p>