Say I have several actions that could cause a component to re-render. If I have a javascript function that I want to have invoked when that component is redrawn, I have to put a call in the oncomplete attribute of each of those actions.
Is there any way to register a javascript function that will be called whenever a given component is re-rendered?
Explore a4j:jsFunction component. It send an axax submit every time some function called. So you just call the function and before the function ajax submit will occurs.