I have an a4j:commandLink and I want to disable it when it is clicked. I write the code like this:
<a4j:commandLink id="link"
onclick="this.disabled=true;"
action="#{jobAction.action}"
<h:graphicImage value="/img/last-enable.gif" />
</a4j:commandLink>
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