title: JSF 2.0 Input field rendered by Ajax cannot be used to input values?
body: <pre><code>&lt;h:form&gt;
      Do you have a driving license?
      &lt;h:selectOneMenu value="#{requestScope.license}"&gt;
          &lt;f:selectItem itemLabel="Select..." itemValue=""/&gt;
          &lt;f:selectItem itemLabel="Yes" itemValue="Y"/&gt;
          &lt;f:selectItem itemLabel="No" itemValue="N"/&gt;
          &lt;f:ajax render="@form"/&gt;
      &lt;/h:selectOneMenu&gt;
      &lt;br/&gt;
      Enter driving license number:
      &lt;h:inputText value="#{requestScope.number}"
        rendered="#{'Y' eq requestScope.license ? true : false}"/&gt;
      &lt;br/&gt;
      &lt;h:commandButton value="Submit"/&gt;
      &lt;br/&gt;
      Your driving license number is: #{requestScope.number}
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Problem in implementing a VERY COMMON scenario with JSF 2.0</p>
  
  <p>The above JSF 2.0 markup depicts a very common scenario.</p>
  
  <p>If the user selects “Yes” for the question “Do you have a driving license?”, then the “Enter your driving license number:” field is rendered by Ajax.</p>
  
  <p>If the user enters the driving license number and presses the button, the input data should be displayed at the bottom (according to my understanding), but it is not happening. </p>
  
  <p>Please anyone explain this.</p>