title: jsf validation issue - applies required field validation for disabled input fields
body: <p>I am having problem with <strong>required=true</strong> validation which is applied on disabled fields.</p>
  
  <p>I have an a4j:commandButton and two dropdowns containing list of states and list of countries inside a form. Both the dropdowns have required="true" validation applied. state dropdown is enabled and country dropdown is disabled by default by using the tag attribute disabled="true" as shown below:</p>
  
  <pre><code>&lt;h:selectOneMenu value="#{states}" required="true"&gt;
    &lt;f:selectItems&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;h:selectOneMenu value="#{countries}" disabled="true" required="true"&gt;
    &lt;f:selectItems&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p><strong>Scenario# 1:</strong> click on the a4j:commandButton without selecting anything in the state dropdown.
  <strong>result:</strong> required field validation error for state dropdown which is expected</p>
  
  <p>Now on clicking a radio button (outside the form), state dropdown is disabled and country dropdown is enabled using jquery/javascript as shown below:</p>
  
  <pre><code>$j('#stateDropdown').attr('disabled', 'disabled');
  $j('#countryDropdown').removeAttr('disabled');
  </code></pre>
  
  <p><strong>Scenario# 2:</strong> click on the a4j:commandButton without selecting anything in the country dropdown.
  <strong>result:</strong> required field validation error for both state and country dropdowns. However, only validation error for country dropdown was expected.</p>
  
  <p>the html code generated by for <code>&lt;h:selectOneMenu&gt;</code> tag on runtime:</p>
  
  <p>for dropdown disabled using jsf tag attibute: <code>&lt;select disabled="disabled"&gt;...&lt;/select&gt;</code></p>
  
  <p>for dropdown disabled using jquery: <code>&lt;select disabled=""&gt;...&lt;/select&gt;</code></p>
  
  <p>Does anyone have any idea why jsf is validating the fields disabled by jquery?</p>