This content has been marked as final.
Show 1 reply
-
1. Re: Disable button in modal
iabughosh Sep 29, 2011 7:32 PM (in response to ibstmt)yes, you can use a4j:status for this sort of tasks:
<a4j:commandButton id="testBtn"
value="OK"
ajaxSingle="true" action="#{myBean.process}"
status="testStatus"
oncomplete="#{rich:component('myModal')}.hide();">
<a4j:status id="testStatus"
name="testStatus"
onstart="#{rich:element('testBtn')}.disabled=true;"
onstop="#{rich:element('testBtn')}.disabled=false;">
</a4j:status>
regards.