RenderKit renderKit = (RenderKit) ClassUtils.newInstance(renderKitClass);
for (Iterator renderers = _dispenser.getRenderers(renderKitId); renderers.hasNext();)
{
Renderer element = (Renderer) renderers.next();
javax.faces.render.Renderer renderer = null;
try {
renderer = (javax.faces.render.Renderer) ClassUtils.newInstance(element.getRendererClass());
} catch(FacesException e) {
// ignore the failure so that the render kit is configured
log.error("failed to configure class " + element.getRendererClass(), e);
continue;
}
renderKit.addRenderer(element.getComponentFamily(), element.getRendererType(), renderer);
}
renderKitFactory.addRenderKit(renderKitId, renderKit);
}
}