!renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
{
_resourceLoaders = new ResourceLoader[] {
new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader(RESOURCES)),
new TempDirFileCacheResourceLoader(
new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES)),
new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
};
}
else
{
_resourceLoaders = new ResourceLoader[] {
new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader(RESOURCES)),
new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
};
}
}
else
{
//The ExternalContextResourceLoader has precedence over
//ClassLoaderResourceLoader, so it goes first.
String renderedJSFJS = WebConfigParamUtils.getStringInitParameter(facesContext.getExternalContext(),
InternalClassLoaderResourceLoader.MYFACES_JSF_MODE,
ResourceUtils.JSF_MYFACES_JSFJS_NORMAL);
if (facesContext.isProjectStage(ProjectStage.Development) ||
!renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
{
_resourceLoaders = new ResourceLoader[] {
new ExternalContextResourceLoader(RESOURCES),
new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES),
new ClassLoaderResourceLoader(META_INF_RESOURCES)
};
}
else
{