aspose file tools*
The moose likes JSF and the fly likes Prevent multiple submits (e.g. double clicks) in a4j:CommandLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Prevent multiple submits (e.g. double clicks) in a4j:CommandLink" Watch "Prevent multiple submits (e.g. double clicks) in a4j:CommandLink" New topic
Author

Prevent multiple submits (e.g. double clicks) in a4j:CommandLink

Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
I tried this to prevent double clicks, which dint work.



Please let me know if there is any other way. Also we dont use head/body tags in our .xhtml pages (I dunno why).

Thank you,
Himalay


SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
bostian tov
Ranch Hand

Joined: Mar 11, 2010
Posts: 32
Did you try ignoreDupResponses?

Why do you have timeout on onclick event? Shouldn't you disable button when is pressed at that time?
Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
Thanks bostian..I Will try ignoreDupResponses.
I had onclick="this.disable=true" before..it worked..but when the user double clicks very fast, it fails and makes two request before disabling.
bostian tov
Ranch Hand

Joined: Mar 11, 2010
Posts: 32
Did you try both: onclick="" ondblclick=""
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prevent multiple submits (e.g. double clicks) in a4j:CommandLink