title: Richfaces render with a4j:ajax
body: <p>I have a page that uses <code>rich:fileUpload</code> and a <code>a4j:commandButton</code> what I want to achieve is, the first time the page is loaded the fileUpload shoul appear(be rendered, my backingBean default is true and so it renders correctly) and when the user hits the commandButton I would love to hide the fileUpload and show an <code>outputText</code> (this is not happening, no error at all)</p>
  
  <p>How can I solve this, my pagelooks like</p>
  
  <pre><code>    &lt;div id="content"&gt;
          &lt;a4j:outputPanel id="contentForm"&gt;
              &lt;h:form enctype="multipart/form-data"
                      rendered="#{uploadBean.formRendered}"&gt;
  
                  &lt;br/&gt;&lt;br/&gt;
  
                  &lt;h:selectOneRadio value="#{uploadBean.selectedOption}"&gt;
                      &lt;f:selectItems value="#{uploadBean.loadOptions}"/&gt;
                  &lt;/h:selectOneRadio&gt;
  
                  &lt;br/&gt;
  
                  &lt;rich:fileUpload addLabel="Agregar" clearAllLabel="Quitar todos"
                                   clearLabel="Quitar" deleteLabel="Quitar"
                                   doneLabel="Completado" uploadLabel="Subir archivos"
                                   fileUploadListener="#{uploadBean.doUpload}"
                                   acceptedTypes="txt, csv"
                                   noDuplicate="true"/&gt;
  
                  &lt;a4j:commandButton value="Iniciar validación"
                                     action="#{uploadBean.doLaunchProcess}"
                                     render="processLabel"
                                     execute="@form"
                                     /&gt;
  
              &lt;/h:form&gt;
          &lt;/a4j:outputPanel&gt;
          &lt;a4j:outputPanel id="processLabel"&gt;
              &lt;h:outputText
                  value="#{uploadBean.processStarted}"
                  rendered="#{not uploadBean.formRendered}"/&gt;
          &lt;/a4j:outputPanel&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>and the code of the action of the commandButton is:</p>
  
  <pre><code>public String doLaunchProcess() {
      formRendered = false;
      InfoValidator iv = new InfoValidator(loadOptions, 
              selectedOption, userBean.getDependencia(), 
              userBean.getTipoDependencia(), userBean.getUsuario(),
              userBean.getIdUsuario(), userBean.getEmail());
      iv.start();
      return "carga-archivos";
  }
  </code></pre>
  
  <p>Is seems that <code>formRendered</code> is always evaluated to true when I want it to be false once a user clicks the button and so the fileUpload hides and show the outputText.</p>
  
  <p><strong>UPDATE</strong>
  Basically what I want is the user to upload files an when the user clicks on the button the fileUpload component dissapears and a outputText appears and said something like "Thanks for uploading"</p>
  
  <p>Maybe my approach is wrong, just put me in the right direction, I'm kind of confuse with the ajax stuff.</p>
  
  <p>Cheers,</p>