title: Issue faced with Trinidad Table, Partial Trigger, and Read Only
body: <p>I have a trinidad table with one column contains drop downs (select one choice) for each row and another column contains an input text for each row. </p>
  
  <p>When a particular option is selected, the input becomes editable (else it remains read only).</p>
  
  <p>The read only behaviour and the partial event are working perfectly as expected. The problem is whenever the input text is supposed to move from editable to read only, I still see the value previously entered when the input text was editable.</p>
  
  <p>From here if I select another option (for which the input text would also be read only) the value goes away.</p>
  
  <p>The JSP Code is as follows:</p>
  
  <pre><code>&lt;tr:table emptyText="No Data" var="vo" autoSubmit="true" partialTriggers="accountType"     value="#{testingBean.voList}" binding="#{testingBean.table}" width="50%"&gt;
  &lt;tr:column&gt;
      &lt;f:facet name="header"&gt;
          &lt;tr:outputText value="Sl No" /&gt;
      &lt;/f:facet&gt;
      &lt;tr:outputText value="#{vo.slNo}" /&gt;
  &lt;/tr:column&gt;
  &lt;tr:column&gt;
      &lt;f:facet name="header"&gt;
          &lt;tr:outputText value="Account Type" /&gt;
      &lt;/f:facet&gt;
      &lt;tr:selectOneChoice unselectedLabel="Select" id="accountType" value="#{vo.accountType}" 
          autoSubmit="true" immediate="true" valuePassThru="true"
          valueChangeListener="#{testingAction.optionsChanged}"&gt;
          &lt;f:selectItems value="#{testingBean.options}" /&gt;
      &lt;/tr:selectOneChoice&gt;
  &lt;/tr:column&gt;
  &lt;tr:column&gt;
      &lt;f:facet name="header"&gt;
          &lt;tr:outputText value="Other" /&gt;
      &lt;/f:facet&gt;
      &lt;tr:inputText value="#{vo.otherType}"
          partialTriggers="accountType"
          readOnly="#{vo.readOnlyFlag}"&gt;&lt;/tr:inputText&gt;
  &lt;/tr:column&gt;
  &lt;/tr:table&gt;
  </code></pre>
  
  <p>The code for the valueChangeListener is as follows:</p>
  
  <pre><code>public void optionsChanged(ValueChangeEvent vce) {
      try {
          System.out.println("Inside Method");
          testingBean = (TestingBean) FacesContext.getCurrentInstance()
                  .getExternalContext().getSessionMap().get("testingBean");
          ArrayList&lt;TableRowVO&gt; list = testingBean.getVoList();
          UIXTable table = testingBean.getTable();
          TableRowVO vo = list.get(table.getRowIndex());
          vo.setReadOnlyFlag(true);
          vo.setAccountType(vce.getNewValue().toString());
          vo.setOtherType("");
          if (vce.getNewValue().equals("3")) {
              System.out.println("Setting false");
              vo.setReadOnlyFlag(false);
          }
          list.set(table.getRowIndex(), vo);
          table.setValue(list);
          testingBean.setVoList(list);
          FacesContext.getCurrentInstance().getExternalContext()
                  .getSessionMap().put("testingBean", testingBean);
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>Is this behaviour expected? Or is there a workaround?</p>
  
  <p>Interestingly, the "View Page Source" option in Firefox does not contain the text, even though I can see it on the page. I had to use FireBug to analyze the element which revealed the following:</p>
  
  <pre><code>&lt;div class="af_inputText_content" 
  id="j_id_jsp_545172797_17:0:j_id_jsp_545172797_27"&gt;
  tttt
  &lt;/div&gt;
  </code></pre>
  
  <p>Version used:
  Trinidad 2.x
  JSF 2.x
  Tomcat 7.0</p>