I need to disable a button on clicking it but need its action to be triggered from my jsp page. But when disabling the button, the backend call doesnt happen. Please assist. Can i have it set from the client side itself rather than using a bean variable and rendering the disabled attribute based on the bean variable value.
<h:commandButton id="ct1" styleClass="right"
value="Follow" action="#{testBB.confirm}" onclick="this.disabled= true;" />