title: How to refresh a page after download
body: <p>I have a commandButton that will invoke a function to download a file (standard stuffs like <code>InputStream</code>, <code>BufferedOutputStream</code> ...) After download success, at the end of the function, I change some values of the current object and persist it into database. All of these work correctly. Now when file is done downloading, the content of the page is not updated. I have to hit refresh for me to see updated content. Please help. Below are the basic structure of my code</p>
  
  <p><code>document</code>: Managed Bean<br>
  <code>getDrawings()</code>: method return a list of Drawing (entity class)<br>
  <code>CheckedOutBy</code>: attribute of Entity <code>Drawing</code></p>
  
  <pre><code>&lt;p:dataTable id="drawing_table" value="#{document.drawings}" var="item" &gt;                            
      &lt;p:column&gt;
          &lt;f:facet name="header"&gt;
                &lt;h:outputText value="CheckedOutBy"/&gt;
          &lt;/f:facet&gt;
          &lt;h:outputText value="#{item.checkedOutBy}"/&gt;
          ...
  &lt;/p:dataTable&gt;
  &lt;p:commandButton ajax="false" action="#{document.Download}" value="Download" /&gt;
  </code></pre>
  
  <p>Inside my Managed Bean</p>
  
  <pre><code>public void Download(){
      Drawing drawing = getCurrentDrawing();
      //Download drawing
      drawing.setCheckedOutBy("Some Text");
      sBean.merge(drawing);  //Update "Some Text" into CheckedOutBy field
  }
  </code></pre>