title: Sending a redirect from inside an ajax listener method
body: <p>This question is closely related to <a href="https://stackoverflow.com/q/18515372/1073118">this</a> one (which has been answered).</p>
  
  <p>Throughout my project, I navigate between screens using JSF command buttons, where the action attribute would point to a function that returns a string. The string is the new screen's name e.g.</p>
  
  <pre><code>&lt;h:commandButton value="Select" action="#{searchResultsBundledBean.selectFlight}"&gt;
  &lt;/h:commandButton&gt;
  </code></pre>
  
  <p><code>selectFlight</code> would return a string, e.g. <code>selected-flight-review</code> which would direct the user to <code>selected-flight-review.xhtml</code></p>
  
  <p>For mobile purposes I had to make a <code>panelGrid</code> clickable using an ajax call, e.g.</p>
  
  <pre><code>&lt;h:panelGrid&gt;
      &lt;f:ajax event="click" listener="#{searchResultsBundledBean.clickFlight(lowFareBundledSearchItem)}"/&gt;
   &lt;/h:panelGrid
  </code></pre>
  
  <p>This works, I've tested it, and the correct result is returned(Tested with logging it right before it's returned)</p>
  
  <p>However, no redirection takes place. The ajax call doesn't do it yet. How do I make it redirect to another screen? I don't have to send through any variables, I just need the new screen to be displayed. Should I use something other than ajax(I would prefer not to), or is there some way to make this work the way it is now?</p>