title: PrimeFaces inputText enable/disable
body: <p>I have two radio buttons on JSF2/PrimeFaces page, which I need to enable/disable an inputText field depending on the choice.</p>
  
  <pre><code>&lt;h:form prependId="false"&gt;
      &lt;p:panelGrid id="notif"&gt;
          &lt;p:row id="notif1"&gt;
              &lt;p:column&gt;
                  &lt;h:outputText value="label" /&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;p:selectOneRadio id="radiobuttons" value="#{state.radioStatus}" layout="pageDirection"&gt;
                      &lt;f:selectItem itemLabel="enable" itemValue="enable" /&gt;
                      &lt;f:selectItem itemLabel="disable" itemValue="disable" /&gt;
                      &lt;p:ajax update="date" /&gt;
                  &lt;/p:selectOneRadio&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;p:inputText id="date" value="#{state.infoDate}" disabled="#{!state.checkStatus}" &gt;
                  &lt;/p:inputText&gt;
                  &lt;p:inputText id="test" value="#{state.infoDateTest}"&gt;
                  &lt;/p:inputText&gt;
              &lt;/p:column&gt;
          &lt;/p:row&gt;
      &lt;/p:panelGrid&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Also this all is inside a tab, but there is no nested forms when checked the generated html. The fields seem to get the id of the tab, but they seem to be correct like this (Did not work when tried to use id notation 'tabView:date' for the ajax.)</p>
  
  <p>The problem is that when entering the page, the 'actual' text field is disabled by default and should be enabled when the radio button is set to enable it. When the radio button status is updated, I can see the event is registered on the server side and the inputText field gets "visually" enabled (by default it is disabled as supposed to). However the field is not "focusable" after enabling it, so can't write to it.</p>
  
  <p>The more bizarre it gets when I added the 'test' inputText field, which does not get it self enabled/disabled regarding to radio buttons. On a fresh page load you can write to it, but after changing the radio button status, it is not writable anymore (the text that was entered prior to ajax call, will remain, but is not editable).</p>
  
  <p>However the radio buttons continue to work and will fire events on the server side.</p>
  
  <p>Could someone point out what I may be doing incorrectly, or could this be a bug with PrimeFaces?</p>
  
  <p>// Update
  Like said, the managed bean works as supposed to, so I don't see any problems there, but here is the code (simplified and renamed for readability as the relevant parts are taken from a bigger context).</p>
  
  <pre><code>@ManagedBean(name = "state")
  @SessionScoped
  public class ExampleBean implements Serializable {
  
      private static final String disable = "disable";
      private static final String enable = "enable";
      private String text;
      private List&lt;TestRow&gt; rows = null;
      private TestRow row = null;
      private String radioStatus = "enable";
      private String infoDate = "";
      private String infoDateTest = "";
  
      @PostConstruct
      public void initEmpty() {
      }
  
      public String getRadioStatus() {
  
          return this.radioStatus;
      }
  
      public void setRadioStatus(String radioStatus) {
  
          this.radioStatus = radioStatus;
      }
  
      public String getInfoDate() {
  
          return infoDate;
      }
  
      public void setInfoDate(String infoDate) {
  
          this.infoDate = infoDate;
      }
  
      public String getInfoDateTest() {
  
          return infoDateTest;
      }
  
      public void setInfoDateTest(String infoDateTest) {
  
          this.infoDateTest = infoDateTest;
      }
  
      public boolean isCheckStatus() {
  
          return this.radioStatus.equalsIgnoreCase(enable) ? true : false;
      }
  }
  </code></pre>