title: Invoke <h:commandLink> action method using <f:ajax>
body: <p>I have the following code:</p>
  <pre><code>&lt;h:commandLink action=&quot;#{testBean.showSomething}&quot;&gt;
      Do Stuff
  &lt;/h:commandLink&gt;
  </code></pre>
  <p>which does what I want (change the state of testbean and reload the page which will show a different set of divs. because of their &quot;rendered&quot; properties)
  Now I want to use ajax to accomplish this so I did this:</p>
  <pre><code>&lt;h:commandLink action=&quot;#{testBean.showSomething}&quot;&gt;
      &lt;f:ajax event=&quot;click&quot; render=&quot;:content&quot; /&gt;
      Do Stuff
  &lt;/h:commandLink&gt;
  </code></pre>
  <p>However this causes the showSomething method to not even be called.
  IMHO what I want to do is rather simple but I can't for the life of me figure out how to do it.</p>