Hi,
 
  Thanks for your reply. After I did this, the form is never submitted.
 
   color="#2a00ff" size="2">this.disabled=true; document.myForm.submit(); return false;"

 

Thanks,
Emily


 
On 3/25/06, Yura.Tkachenko <[EMAIL PROTECTED]> wrote:

Hi,

Try to setup onclick handler after you clicked on the link like this:

 

<h:commandLink …. />

 

In this case by onclick won't be submit.

 

Thanks,

Yura.

 


From: Emily Gu [mailto: [EMAIL PROTECTED]]
Sent: Saturday, March 25, 2006 10:43 PM
To: users@myfaces.apache.org
Subject: How to disable commandLink button after it is clicked once?

 

Hi,

 

Any recommend way to disable the commandLink button after a user click it once? _javascript_ this.disabled=true, it seems only giving the visual effect as the the button is disabled but it still submits twice if I click it twice. Any help is greatly appreciated.

 

Thanks,

Emily


Reply via email to