First, what I want to achieve:
Let’s say I’m doing some stuff in onClick() method of a AjaxLink. I want to give user some feedback with mid-status and continue on doing, and give another feedback.
To do this I thought of adding some component, or behaviour that would send ajax request immediately after being rendered onto page so that I could continue in onEvent() of this behaviour. How can I achieve something like this?
I have found out myself. It is enough to add such implementation of
AbstractDefaultAjaxBehavior:respond(AjaxRequestTarget target)will be invoked when component it was added to is rendered.