title: How to disable UI components based on value in selectOneMenu
body: <p>With the value I get from my combobox, I need to unlock 1 of the elements (inputText) and block the other:e.g</p>
  
  <p>if selecOnMenu value is "A" then inputText with idA is unlocked and the other's blocked</p>
  
  <p>xhtml code: </p>
  
  <pre><code> &lt;h:form prependId="false"&gt;
              &lt;p:selectOneMenu id="enviado"  value="#{combo.valor}"&gt;  
                  &lt;f:ajax event="change" execute="enviado" render="saida" /&gt;
                  &lt;f:selectItem itemValue="#{null}" itemLabel="Selecione um item"  /&gt;
                  &lt;f:selectItems value="#{combo.disponiveis}" /&gt;
                      &lt;/p:selectOneMenu&gt;  
  
                          &lt;br&gt;&lt;/br&gt;
              &lt;h:outputText id="saida" value="opção: #{combo.valor}" /&gt;
  
          &lt;div&gt;
              &lt;p&gt; Opção A -- Falta implementar&lt;/p&gt;        
                  &lt;p:inputText id="idA" value="Insira texto aqui" disabled="??????" /&gt;                
                  &lt;/div&gt;
  
          &lt;div&gt;
              &lt;p&gt;Opção B -- Flta implementar&lt;/p&gt;      
                  &lt;p:inputText id="idB" value="Insira texto aqui" disabled="??????" /&gt;        
                  &lt;/div&gt;
  
          &lt;/h:form&gt;
  
      &lt;/h:body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>I make it work now using on disable = "#{combo.valor != 'idB'}"</p>
  
  <p>now only need to make the ajax work with it</p>
  
  <p>UPDATE 2:</p>
  
  <p>Well, when using <code>&lt;p:inputText&gt;</code> didn't work, but with <code>&lt;h:inputText&gt;</code> works fine.</p>
  
  <p>UPDATE 3:</p>
  
  <p>I just need to use the right ajax element, i was using jsf just trying to re-render a primefaces element, with the primeFaces ajax worked</p>
  
  <p>Thank you</p>