gwtbootstrap/gwt-bootstrap — pull request #392 by svenjacobs (2013-06-24 07:37:26+00:00)
Title: Button looses icon when loading state is changed

UiBinder XML:

Java:

saveButton.state().loading();
...
saveButton.state().complete();

Icon is gone afterwards. Only new loading state text is displayed.
I think this happens because in [Bootstrap JavaScript](http://twitter.github.io/bootstrap/javascript.html#buttons)

$(element).button("loading")

replaces the whole contents of the button with the loading state text.

I've tried to fix this by calling `setIconPosition()` in `Button.LoadingStateBehavior#setLoadingBehavior()` but got an `UmbrellaException`?!