But if I try it like this the view will not be disabled. All the UI stuff will be done after the buttonClick action is finished.
markAsDirty() is not working either.
Can someone of you help me?
Thank you very much.
Marina
With push enabled you can also run doSomething() and enable view in a background thread; in this case you shoul perform ui modifications through UI.access method.
If cannot enable push you should have two client-server roundtrips; for example you can register a javascript function that performs the job while the button click listeners disables the view and invokes that function.