title: How to disable a4j:commandLink
body: <p>I have an a4j:commandLink and I want to disable it when it is clicked.
  I write the code like this: </p>
  
  <pre><code>    &lt;a4j:commandLink id="link"
         onclick="this.disabled=true;"
         action="#{jobAction.action}"
         &lt;h:graphicImage value="/img/last-enable.gif" /&gt;
      &lt;/a4j:commandLink&gt;
  </code></pre>
  
  <p>but it does not work. The same code can work in the a4j:commandButton, why a4j:commandLink can't? Anyone can tell me how to implement that function? 
  Thanks </p>