title: URL fragment in links and ajax redirects in JSF
body: <p>I found out that methods called by ajax actions in JSF 2.0 can return navigation case and then the page can be redirected.</p>
  
  <p>Eg. when I am on page <code>index.xhtml</code> and my ajax call return navigation case <code>detail</code> then the page is redirected. That is great.</p>
  
  <pre><code> &lt;h:commandLink value="The link" action="#{bean.someAction}" &gt;
              &lt;f:ajax /&gt;
   &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>But now I would like to do only partial redirect in the current page, so I would like to use URL fragment. The desired final URL looks like this <code>index.xhtml#someComponentId</code>. I have tried to do it with appending of <code>#fragment</code> part behind the navigation case but it doesn't work.</p>
  
  <p>Is there any way how to make ajax and normal redirects able to use URL fragments, please? Thanks for your responses.</p>