Re: Disable component to prevent double click

2018-03-06 Thread Kamil Paśko
Thanks Claudia! W dniu 2018-03-06 o 19:14, Claudia Hirt pisze: Hi again, I created a small sample project containing the double-click behaviors for ajax- and non-ajax-buttons and links: https://github.com/sunshineKE/wicketdoubleclickexample/ Best regards, Claudia Hirt Am 01.03.2018 um 20

Re: Disable component to prevent double click

2018-03-06 Thread Claudia Hirt
Hi again, I created a small sample project containing the double-click behaviors for ajax- and non-ajax-buttons and links: https://github.com/sunshineKE/wicketdoubleclickexample/ Best regards, Claudia Hirt Am 01.03.2018 um 20:16 schrieb Kamil Paśko: Dear Claudia, Don't you mind sharing yo

Re: Disable component to prevent double click

2018-03-01 Thread Kamil Paśko
Dear Claudia, Don't you mind sharing your solution for all this cases? It would be really beneficial for other users. Kind regards, Kamil W dniu 2018-03-01 o 19:22, Claudia Hirt pisze: Thanks again for your help. I got the disabling behaviour bound to all kinds of links and buttons. I solved

Re: Disable component to prevent double click

2018-03-01 Thread Claudia Hirt
Thanks again for your help. I got the disabling behaviour bound to all kinds of links and buttons. I solved the issue about cross-browser link disabling by adding a temporary copy of the tag with JavaScript and hide the original link. This his seems to be the best solution for me. I would like

Re: Disable component to prevent double click

2018-02-21 Thread Martin Grigorov
You can override public CharSequence getAfterHandler(Component component) instead to disable the button *after* the Ajax call is made. Martin Grigorov Wicket Training and Consulting Looking for a remote position with Wicket ? Contact me! https://twitter.com/mtgrigorov On Wed, Feb 21, 2018 at 8:3

Re: Disable component to prevent double click

2018-02-21 Thread Claudia Hirt
Thanks for your answer. Your tip for non-ajax-buttons helped me a lot. Just another remark about that: disabling a Button in getTriggerJavaScript leads to the side effect that the onsubmit method of the Button will not be called because the disabling is done before form submit. The css property

Re: Disable component to prevent double click

2018-02-20 Thread Andrea Del Bene
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. I

Re: Disable component to prevent double click

2018-02-19 Thread Claudia Hirt
By the way: is there any reason why AjaxDisableComponentListener has no public constructor? > Am 19.02.2018 um 21:49 schrieb Claudia Hirt : > > 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 >

Disable component to prevent double click

2018-02-19 Thread Claudia Hirt
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