// Installs a PhaseListener on the view root that will replace the response writer before
// and after rendering with one that only renders when the current component has one of the Ids
// that we receive from the request here.
if (!componentIds.isEmpty() || !clientIds.isEmpty()) {
context.getViewRoot().addPhaseListener(new ConditionalWriterListener(context, componentIds, clientIds, renderChildren));
}
}