This content has been marked as final.
Show 1 reply
-
1. Re: not allow the user click more than once in a4j:commandButton
mcmurdosound Oct 14, 2011 8:26 AM (in response to andesouza86)Is there any particular reason why you're using an a4j:support inside an a4:commandButton? All those features are already provided by the button as far as I know.
You could try this 'hack':
<a4j:commandButton value="addToFavourites"
onclick="this.disabled=true;"
oncomplete="alert('helloworld');"
action="#{favouriteHandler.addToFavourites}"/>
--> onclick="this.disabled=true;"