wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Del Bene <an.delb...@gmail.com>
Subject Re: Disable component to prevent double click
Date Tue, 20 Feb 2018 15:02:41 GMT
Hi,

as reported in its javadoc AjaxDisableComponentListener by default uses the
DOM attribute 'disabled' to do its job, but this attribute doesn't work
with links. For this kind of components you have to provide the right
JavaScript to enable/disable them by overriding generateHandlerJavaScript.
Id you are not using AJAX you can not use this behavior and you must
provide the JavaScript code in some other way. For example with SubmitLink
you have to override getTriggerJavaScript. Unfortunately "disabling" a html
component is not a standard procedure so for those components that don't
support the attribute 'disabled' we must use custom JavaScript.

On Mon, Feb 19, 2018 at 9:55 PM, Claudia Hirt <hirt-claudia@gmx.de> wrote:

> By the way: is there any reason why AjaxDisableComponentListener has no
> public constructor?
>
> > Am 19.02.2018 um 21:49 schrieb Claudia Hirt <hirt-claudia@gmx.de>:
> >
> > Hi all,
> > I‘m facing the problem of double submits when double clicking on buttons
> and links. I was very pleased to see there’s a new listener of
> https://issues.apache.org/jira/browse/WICKET-6448 implemented in wicket
> 7.10. But this only works for Buttons not for links like a SubmitLink. I‘m
> also facing the same issue for non-ajax-components.
> > Any suggestions how to solve this?
> > Thanks in advance!
> > Best regards, Claudia
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message