title: JSF website and redirecting pages
body: <p>I have a website that was written using JSF 1.2.
  I've been made aware that on one of our pages, you click a button and and http redirect is supposed to occur. This is not working.</p>
  
  <p>My JSF file contains the button:</p>
  
  <pre><code>&lt;h:commandButton immediate="true"
                   action="#{jLoginFragment.btnLogin_onClick}" 
                   id="btnLogin"
                   value="Login"
                   styleClass="buttonComp"/&gt;
  </code></pre>
  
  <p>My bean contains:</p>
  
  <pre><code>public String btnLogin_onClick() {
      System.out.println ('TEST');
      FacesContext.getCurrentInstance().getExternalContext().redirect("/test.html");
      return null;
  }
  </code></pre>
  
  <p>When I click on the button, the <code>btnLogin_onClick()</code> is executed (as I can see the 'TEST' message, but the redirect does not happen.</p>
  
  <p>No exceptions are thrown, so I'm a little stuck on what to do here. Can anyone help?</p>