Tags in my blog

09 May 2009

Disable button when clicked in RichFaces

<a4j:commandButton
id="cbutton"
value="Invoke"
actionListener="#{test.myActionListener}"
action="#{test.anAction}"
onclick="this.disabled=true"
oncomplete="this.disabled=false"
/>

No comments: