title: h:inputText data cached
body: <ol>
  <li><p>Click "LINK1" --> modal popsup --> enter value in text-box --> click Submit/Process </p></li>
  <li><p>Click another link "update/cancel" --> same modal popsup --> I see the value in the text box (This is fine and if I reload the page and click the link again, the modal appears with values intact) </p></li>
  <li><p>Click "LINK1" --> same modal popsup --> I see the value in the text box cached(this time I want the values not to be cached in the text box) --> If I reload the page, the values go away though. </p></li>
  </ol>
  
  <p>I have tried clearing the backing-bean when the links are clicked, but still the values appear. Please advise.</p>
  
  <hr>
  
  <p><strong>Update</strong> here is the code:</p>
  
  <p><code>ReimbursementActionBean.java</code></p>
  
  <pre><code>@Name("reimbursementAction")
  
  @Scope(ScopeType.CONVERSATION)
  
  public class ReimbursementActionBean implements Serializable {
  
      public void initReimbursement(PaymentInfo payment) {
             // do something
      }
  
      public void initNewReimbursement(PaymentInfo payment) {
          initReimbursement(payment);
          // --&gt; log.info("CLEARING INPUT ELEMENT CACHE");
          // --&gt;this.getReimbursement().setAmount(null);
          hideModal = false;
      }
  
      public void initUpdateReimbursement(PaymentInfo payment) {
          initReimbursement(payment);
          hideModal = false;
      }
  
      public void initCancelReimbursement(PaymentInfo payment) {
          initReimbursement(payment);
          hideModal = true;
      }
  
  
     public void reimbursePayment() {
                   // do something
      }
  
  
      public void updateReimbursment() {
           // do something
  
      }
  
      public void cancelReimbursment() {
           // do something
      }
  
  
      public void cancelupdateReimbursment() {
          hideModal = true;
      }
  
      public Reimbursement getReimbursement() {
          return reimbursement;
      }
  
      public void setReimbursement(Reimbursement reimbursement) {
          this.reimbursement = reimbursement;
      }
  
  }
  </code></pre>
  
  <p><code>reimbursePaymentModal.xhtml</code></p>
  
  <pre><code>&lt; rich:modalPanel id="reimbursePaymentPanel"
                       width="430"
                       autosized="true"
                       showWhenRendered="#{!hideModal}"&gt;
          &lt;f:facet name="header"&gt;
              &lt;h:panelGroup&gt;
                  &lt;h:outputText value="Reimburse Payment"/&gt;
              &lt;/h:panelGroup&gt;
          &lt;/f:facet&gt;
  
          &lt;h:form&gt;
              &lt;a4j:outputPanel id="reimbursePaymentDiv"&gt;
                  &lt;s:div styleClass="section" style="padding:5px;padding-left:0px;"&gt;
  
                      &lt;s:decorate template="/layout/edit.xhtml"&gt;
                          &lt;ui:define name="label"&gt;Reimbursement Amount(*)&lt;/ui:define&gt;
                          &lt;h:inputText id="reimbursementAmount"
                                       value="#{reimbursementAction.reimbursement.amount}"&gt;
                              &lt;a4j:support event="onblur" rerender="reimbursementAmount" action="#{reimbursementAction.validateAmount}" limitToList="true" /&gt;
                          &lt;/h:inputText&gt;
                      &lt;/s:decorate&gt;
  
                      &lt;div style="clear:both"&gt;&lt;/div&gt;
  
                  &lt;/s:div&gt;
  
                  &lt;div class="button-holder" style="padding-top:10px"&gt;
  
                      &lt;div style="float:right"&gt;
                          &lt;a4j:commandLink oncomplete="Richfaces.hideModalPanel('reimbursePaymentPanel');"
                                           immediate="true"
                                           action="#{reimbursementAction.cancelupdateReimbursment()}"
                                           styleClass="button"
                                           reRender="reimbursePaymentPanel"&gt;
                              &lt;!--todo add cancel command to reimbursementAction--&gt;
                              &lt;span class="inner-button"&gt;Cancel&lt;/span&gt;
                          &lt;/a4j:commandLink&gt;
                      &lt;/div&gt;
  
  
                      &lt;div style="float:right"&gt;
                          &lt;a4j:commandLink id="reimbursePaymentId" styleClass="button"
                                           oncomplete="this.disabled=false;"
                                           action="#{reimbursementAction.reimbursePayment}"
                                           rendered="#{reimbursementAction.reimbursementConstraints.allowableReimbursementAction eq 'SUBMIT_NEW'}"
                                           reRender="paymentSearchResults,reimbursePaymentDiv,reimbursePaymentPanel,pnlInfoView" limitToList="true"
                                           bypassUpdates="true" onclick="this.disabled=true;"&gt;
                              &lt;span class="inner-button"&gt;Process&lt;/span&gt;
                          &lt;/a4j:commandLink&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/a4j:outputPanel&gt;
  
          &lt;/h:form&gt;
  
      &lt;/rich:modalPanel&gt;
  </code></pre>
  
  <p><code>PaymentList.xhtml</code></p>
  
  <pre><code>&lt; a4j:outputPanel id="paymentSearchResults" ajaxRendered="true"&gt;
  
          &lt;s:div styleClass="section" style="overflow-y:scroll; overflow-x:hidden;max-height:420px;margin:10px "
                 rendered="#{not empty paymentList}"&gt;
              &lt;rich:dataTable id="paymentListId"
                              var="payment"
                              value="#{paymentList}"
                              styleClass="data-table"
                              rowClasses="odd,even"
                              width="100%"&gt;
                                &lt;!-- Reimburse --&gt;
                          &lt;s:div rendered="#{payment.reimbursementSummary.allowableReimbursementActionType eq 'SUBMIT_NEW'}"&gt;
                              &lt;a4j:commandLink action="#{reimbursementAction.initNewReimbursement(payment)}"
                                               reRender="reimbursePaymentPanel,reimbursePaymentDiv"
                                               limitToList="true"&gt;
                                  &lt;span&gt; Reimburse&lt;/span&gt;
                              &lt;/a4j:commandLink&gt;
                          &lt;/s:div&gt;
                          &lt;!-- Update Reimburse and Cancel Reimbursement--&gt;
                          &lt;s:div rendered="#{payment.reimbursementSummary.allowableReimbursementActionType eq 'MODIFY_EXISTING'}"&gt;
                              &lt;a4j:commandLink action="#{reimbursementAction.initUpdateReimbursement(payment)}"
                                               reRender="reimbursePaymentPanel,reimbursePaymentDiv"
                                               limitToList="true"
                                               bypassUpdates="true"&gt;
                                  &lt;span&gt;Update Reimbursement&lt;/span&gt;
                              &lt;/a4j:commandLink&gt;
  
                              &lt;h:outputText value=" | "/&gt;
  
                              &lt;a4j:commandLink oncomplete="Richfaces.showModalPanel('cancelReimbursementPanel');"
                                               action="#{reimbursementAction.initCancelReimbursement(payment)}"
                                               reRender="cancelReimbursementDiv"
                                               limitToList="true"&gt;
                                  &lt;span&gt;Cancel Reimbursement&lt;/span&gt;
                              &lt;/a4j:commandLink&gt;
                          &lt;/s:div&gt;
  
                      &lt;/div&gt;
                  &lt;/rich:column&gt;
  
              &lt;/rich:dataTable&gt;
          &lt;/s:div&gt;
      &lt;/a4j:outputPanel&gt;
  </code></pre>
  
  <p>The links I am talking about are: <code>Reimburse</code> and <code>Update Reimbursement</code>. Clicking on the links rerender <code>reimbursePaymentPanel</code> which open up the modal with <code>id=reimbursePaymentPanel</code> having textbox with <code>id="reimbursementAmount"</code>.</p>