We are migrating an application from jsf 1.2 to jsf 2.0, and upgrading Ajax4JSF (ajax4jsf-1.1.1) to Richfaces 4.2.2. In our old code, there are places where we use org.ajax4jsf.framework.ajax.AjaxActionComponent to programmatically set the 'rerender' attribute of some components. The relevant code is as follows:
public void changeReRender(UIComponent comp){
AjaxActionComponent commandAjax = (AjaxActionComponent)comp;
HashSet values = new HashSet();
values.add("idToBeRerendered");
commandAjax.setReRender(values);
}
But in Richfaces 4 the AjaxActionComponent class was removed. Is there a class that can be used instead of AjaxActionComponent, or another way to programmatically change the 'rerender' attribute of UIComponent?