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