//The ExternalContextResourceLoader has precedence over
//ClassLoaderResourceLoader, so it goes first.
if (FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Development))
{
_resourceLoaders = new ResourceLoader[] {
new ExternalContextResourceLoader("/resources"),
new ClassLoaderResourceLoader("META-INF/resources"),
new InternalClassLoaderResourceLoader("META-INF/internal-resources")
};
}
else
{
_resourceLoaders = new ResourceLoader[] {
new ExternalContextResourceLoader("/resources"),
new ClassLoaderResourceLoader("META-INF/resources")
};
}
}
return _resourceLoaders;