title: primefaces disabled component validation
body: <p>I am using jsf 2.1 + primefaces 3.4.1. I've got problems with preventing validation of disabled components.</p>
  
  <p>What I have is approximately this:</p>
  
  <pre><code>&lt;h:form id="form"&gt;
      &lt;p:dataTable id="parentDataTable" value=#{bean.list} var="parentItem"..&gt;
          &lt;p:column&gt;
            ..
            &lt;p:dataTable id="childDataTable" value=#{bean.map[parentItem]}" var="childItem"&gt;
                  &lt;p:column&gt;
                      &lt;f:facet name="header"&gt;
                          some inputText
                      &lt;/f:facet&gt;
                      &lt;p:inputText id="inputText"
                          disabled=#{bean.selectedObjectsMap[childItem]} required="true" requiredMessage="value required" /&gt;
                      &lt;p:message for=":form:parentDataTable:childDataTable:inputText" /&gt;
                  &lt;/p:column&gt;
                  &lt;p:column&gt;
                      &lt;f:facet name="header"&gt;
                          Select
                      &lt;/f:facet&gt;
                      &lt;p:selectBooleanCheckbox id="checkBox" value="#{bean.selectedObjectsMap[childItem]}"&gt;
                          &lt;p:ajax update=":form:parentDataTable:childDataTable:inputText" /&gt;
                      &lt;/p:selectBooleanCheckbox&gt;
                  &lt;/p:column&gt;
              &lt;/p:dataTable&gt;
          &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>The idea is that by default the inputText component is disabled and the "required value" validation doesn't work when I submit the form. When I click the selectBooleancheckbox component the inputText gets enabled and the "required value" validation works as well when I submit the form. However, when I disable the inputText back the validation continues to work and the "value required" message appears and I cannot submit the form. It seems that the JSF UI component tree on the server side doesn't properly get updated when I click on the checkbox, although visually I can see that the inputText component gets disabled every time I click on the checkbox.</p>
  
  <p>Any ideas how I can resolve this?     </p>