Recently I've added integration for
http://msurguy.github.io/ladda-bootstrap/ to

It was as simple as these two lines:

i.e. in onBeforeSend() do whatever your button needs to make itself
disabled. In onComplete() revert it.

Martin Grigorov
Wicket Training and Consulting

On Thu, Oct 9, 2014 at 8:29 PM, Garret Wilson <gar...@globalmentor.com>

> IndicatingAjaxButton is nice. But I need one more step: I need the button
> to be disabled during submission.
> Mystic Coders indicated a solution <http://www.mysticcoders.com/
> blog/disabling-an-ajax-submit-button/>, but that doesn't seem to work
> with Wicket 7.
> Some have filed bugs to Wicket <https://issues.apache.org/
> jira/browse/WICKET-5360>  and filed bugs to Wicket stuff <
> https://github.com/wicketstuff/core/issues/272> to have this added, but
> were turned down.
> In the Wicket documentation there is some complicated code <
> http://wicket.apache.org/guide/guide/ajax.html#ajax_6> for adding layers
> and having indicators---but I already have an indicator. I just want to
> disable the button.
> How can I simply disable the Ajax button during submission? I can't find
> the page that tells me how to do this---but I find lots of people wanting
> to do it, and lots of people providing complicated workarounds that break
> from one version of Wicket to the next. Any easy solutions?
> Thanks in advance,
> Garret

Reply via email to