title: Execute backing bean action on load?
body: <p>I would like to build a results page for a report export page. This results page must display the status of the export and offer the download of this export.</p>
  
  <p>The export is done in an action method. I can execute it via a <code>commandButton</code> but it must be executed automatically on load.</p>
  
  <p>How can I accomplish this?</p>
  
  <p>JSF:</p>
  
  <pre><code>&lt;h:commandButton value="Download report" action="#{resultsView.downloadReport}"/&gt;
  </code></pre>
  
  <p>Backing bean:</p>
  
  <pre><code>  public String downloadReport() {
      ...
      FileDownloadUtil.downloadContent(tmpReport, REPORT_FILENAME);
      // Stay on this page
      return null;
    }
  </code></pre>
  
  <p>Clarification: Is this feasible with a4j? I thought of a solution that an Ajax request triggers my <code>downloadReport</code> action and its request is the file download.</p>