title: Richfaces 4 fileUpload redirect following uploadcomplete
body: <p>I would like to redirect to another page following the upload of a single file.  The source xhtml and destination xhtml are in the same directory.  I have tried returning a String in the fileUploadListenerMethod:</p>
  
  <pre><code>public String loadFills(FileUploadEvent event) throws Exception {
    return "treeOrderRequestStatus";
  }
  </code></pre>
  
  <p>but this does not result in a redirect.</p>
  
  <p>I have also tried accomplishing it via faces-config.xml:</p>
  
  <pre><code>&lt;navigation-rule&gt;
    &lt;from-view-id&gt;/userpages/manualDataLoad.xhtml&lt;/from-view-id&gt;
    &lt;navigation-case&gt;
      &lt;from-action&gt;#{manualDataLoader.loadFills}&lt;/from-action&gt;
      &lt;to-view-id&gt;/userpages/treeOrderRequestStatus.xhtml&lt;/to-view-id&gt;
      &lt;redirect/&gt;
    &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  
  &lt;navigation-rule&gt;
    &lt;from-view-id&gt;/userpages/manualDataLoad.xhtml&lt;/from-view-id&gt;
    &lt;navigation-case&gt;
      &lt;from-outcome&gt;treeOrderRequestStatus&lt;/from-outcome&gt;
      &lt;to-view-id&gt;/userpages/treeOrderRequestStatus.xhtml&lt;/to-view-id&gt;
      &lt;redirect/&gt;
    &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>and neither of these worked.</p>
  
  <p>Finally, I have tried executing a link triggered by the uploadcomplete event:</p>
  
  <pre><code>&lt;rich:fileUpload fileUploadListener="#{manualDataLoader.loadFills}"
      maxFilesQuantity="1" createTempFiles="false" uploadLabel="Import Fill Data"
      addLabel="Select Fill File"&gt;
    &lt;a4j:ajax event="uploadcomplete" execute="redirect"/&gt;
  &lt;/rich:fileUpload&gt;
  
  &lt;h:link id="redirect" outcome="treeOrderRequestStatus"/&gt;
  </code></pre>
  
  <p>and still no dice.  In each of these attempts I have tried multiple different combinations of specifying the destination page (e.g.: including the .xhtml extension, including the directory, ...) but have not yet succeeded.</p>
  
  <p>What am I doing wrong?</p>