Hi,

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

 

<h:commandLink …. false;” />

 

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: [email protected]
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