if(StringUtil.isEmpty(lang)) {
lang = XSPContext.getXSPContext(context).getLocaleString();
}
baseCompUrl.append(lang);
// The bascomp URL
ScriptResource baseCompJS = new ScriptResource(baseCompUrl.toString(),true);
rootEx.addEncodeResource(context,baseCompJS);
// And the corresponding CSS
StyleSheetResource baseCss = new StyleSheetResource(linkurl + "/stwebclient/dojo.blue/sametime/themes/WebClientAllNoTundra.css");
rootEx.addEncodeResource(context,baseCss);
}
int preload = 0;
if(script.equals(UISametimeClient.SCRIPT_LIVENAME)) {
preload = 1;
ScriptResource livenameJS= new ScriptResource(linkurl + "/stwebclient/livenameLight.js",true);
rootEx.addEncodeResource(context,livenameJS);
} else if(script.equals(UISametimeClient.SCRIPT_WIDGETS)) {
preload = 2;
baseComp = true;
ScriptResource widgetsJS= new ScriptResource(linkurl + "/stwebclient/widgetsLight.js",true);
rootEx.addEncodeResource(context,widgetsJS);
}
// Add some dojo resources to optimize the use of the JS aggregator
if(preload>0) {