title: JSF 2.0 navigating on commandLink and commandButton doesn't work
body: <p>I'm using JSF 2.0 and I have a problem with navigation after both commandLink and commandButton. I use following code:</p>
  
  <pre><code>&lt;h:commandLink action="login?faces-redirect=true" 
      value="#{showElementBean.showElement()}"&gt; Login &lt;/h:commandLink&gt;  
  
  &lt;h:commandButton action="login?faces-redirect=true" value="Move to login.xhtml" /&gt;
  </code></pre>
  
  <p>These tags are inside a form, login is just an example. Result of clicking on rendered controls is always POST with refresh of a current page. What do I wrong?</p>
  
  <p><strong>Edit:</strong>
  According to comments of BalusC I' adding real code fragment:</p>
  
  <pre><code>&lt;h:commandLink actionListener="#{showElementBean.showElement(element)}" 
      value="View" &gt; &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>I have a page with a list of elements and I want to add links that leads to element view page. Thus I need to pass this element to a show page. I'm JSF primer, e.g. in Rails I'd use GET and URL params, but I don't know how to do it 'in JSF-way'.</p>