I have a link that should fire some process on the server and go inactive, then it should monitor this process at the background, and when it will be finished, link should be updated. All these actions should be done with the aid of AJAX.
Example of link transformation: Bake a cake -> Baking a cake -> Load baked cake
This workflow could be done within onClick method of AjaxLink, but it will block another AJAX requests, and will go down on long processing time.
One option here is to use AbstractAjaxTimerBehavior to poll server status regularly and update the label accordingly