This content has been marked as final. 
    
Show                 6 replies
    
- 
        1. Re: How to disable a:button after it is clicked?gopib Sep 18, 2009 1:33 AM (in response to phantasmo)Hi phantasmo, are u using <a4j:button> or <h:button> or <s:button>, send your code. 
- 
        2. Re: How to disable a:button after it is clicked?liuliu Sep 18, 2009 3:00 AM (in response to phantasmo)
 onclick="this.disabled=disabled"?
- 
        3. Re: How to disable a4j:commandButton after it is clicked?phantasmo Sep 18, 2009 6:32 AM (in response to phantasmo)"gopib" wrote: 
 Hi phantasmo, are u using <a4j:button> or <h:button> or <s:button>, send your code.
 Currently, I have an <a4j:commandButton> (I have accidentally written "a:button" in the topic), but this can change if necessary."liuliu" wrote: 
 onclick="this.disabled=disabled"?
 Yes, exactly. That would be the script I'd use, but I have no clue where to place it as, at least from what I know, <a4j:commandButton> produces it's own onclick handler. So, I need the script you mentioned to run before any other onclick action.
 I feel I am asking for something very obvious... if that's truly the case, please forgive, I have just started with RichFaces...
- 
        4. Re: How to disable a:button after it is clicked?janakiramnarla Sep 18, 2009 9:37 AM (in response to phantasmo)use this for commandButton onclick="this.disabled=true;" 
- 
        5. Re: How to disable a:button after it is clicked?janakiramnarla Sep 18, 2009 9:43 AM (in response to phantasmo)
 u can use this also
 onclick="#{rich:component('wait-dialog-invisible')}.show()" oncomplete="#{rich:component('wait-dialog-invisible')}.hide()"
 <rich:modalPanel id="wait-dialog-invisible" resizeable="false"
 style="filter: alpha(opacity = 0);opacity: 0;" autosized="false"
 width="10" height="10" moveable="false" left="-100" top="-100"
 shadowOpacity="0" />
- 
        6. Re: How to disable a:button after it is clicked?phantasmo Sep 22, 2009 4:48 PM (in response to phantasmo)Huh, I really didn't think it was that straight forward. 
 Thanks a lot for the help!
 
     
     
    