Hi,
I have to write a JSF component which have action that rerender itself.
I write a the component class extending AjaxActionComponent, and implementing AjaxComponent interface. My renderer class extend AjaxComponentRendererBase.
Rerender are set to my component ID. I generate Ajax action which create an ActionEvent. The broadcast function does this when action event is brodcast:
AjaxContext.getCurrentInstance(getFacesContext()).addComponentToAjaxRender(this);