viewResources.setProcessStyles(false);
}
} catch (SkinNotFoundException e) {
log.warn("Current Skin is not found", e);
}
InternetResourceBuilder internetResourceBuilder = InternetResourceBuilder.getInstance();
// Check init parameters for a resources processing.
String scriptStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_SCRIPT_STRATEGY_PARAM);
if(null != scriptStrategy){
if(InternetResourceBuilder.LOAD_NONE.equals(scriptStrategy)){
viewResources.setProcessScripts(false);
} else if (InternetResourceBuilder.LOAD_ALL.equals(scriptStrategy)) {
viewResources.setProcessScripts(false);
viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_FRAMEWORK_SCRIPT).getUri(context, null));
viewResources.addScript(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_UI_SCRIPT).getUri(context, null));
}
}
String styleStrategy = externalContext.getInitParameter(InternetResourceBuilder.LOAD_STYLE_STRATEGY_PARAM);
if(null != styleStrategy){
if(InternetResourceBuilder.LOAD_NONE.equals(styleStrategy)){
viewResources.setProcessStyles(false);
} else if (InternetResourceBuilder.LOAD_ALL.equals(styleStrategy)) {
viewResources.setProcessStyles(false);
viewResources.addStyle(internetResourceBuilder.createResource(this, InternetResourceBuilder.COMMON_STYLE).getUri(context, null));
}
}
viewResources.collect(context);
Set scripts = viewResources.getScripts();
if (scripts.size() > 0) {