title: jsf 2 outputlink rendering method call without clicking
body: <p>I am relatively new in jsf. </p>
  
  <p>I have a jsf page someDetails.xhtml, in which I have an output link</p>
  
  <pre><code>&lt;h:outputLink value="#{someTaskController.completeTask(taskId)}?taskId=#{taskId}"&gt;Assign Ticket&lt;/h:outputLink&gt;  
  </code></pre>
  
  <p>On clicking on this link, the method completeTask should be called and do something.</p>
  
  <p>The problem is, when the jsf page    someDetails.xhtml is opened(in browser), the method    completeTask is getting called and does all the task, which should only happen on clicking the link.</p>
  
  <p>What should I do ? Please help</p>