public <T extends UIComponent> T replaceChild(String targetChildId, Class<T> type, String configId, String id)
throws Exception {
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
WebuiApplication app = (WebuiApplication) context.getApplication();
UIComponent comp = app.createUIComponent(type, configId, id, context);
comp = replaceChild(targetChildId, comp);
return type.cast(comp);
}
public <T extends UIComponent> T addChild(Class<T> type, String configId, String id) throws Exception {