Hi, Recently I've added integration for http://msurguy.github.io/ladda-bootstrap/ to https://github.com/l0rdn1kk0n/wicket-bootstrap.
It was as simple as these two lines: https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/65529876b31781bc27441b6b2e17559c97abbd0d/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/ladda/LaddaAjaxCallListener.java#L15-L16 i.e. in onBeforeSend() do whatever your button needs to make itself disabled. In onComplete() revert it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:29 PM, Garret Wilson <gar...@globalmentor.com> wrote: > 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 >