for(UIComponent child : children)
{
reorderedChildIdList.add(child.getId());
}
ComponentChange ra = new ReorderChildrenComponentChange(reorderedChildIdList);
FacesContext fc = FacesContext.getCurrentInstance();
ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
apm.addComponentChange(fc, uic, ra);
}