* {@link JavaScriptDependencyLocator} to first find the files.
*/
@Override
public void renderHead(Component comp, IHeaderResponse response)
{
JavaScriptDependencyLocator locator = settings().getLocator();
DependencyCollection scripts = new DependencyCollection();
if(this.libraryName != null)
{
locator.findLibraryScripts(this.libraryName, scripts);
}
else if(this.fileName != null)
{
locator.findResourceScripts(this.clazz, this.fileName, scripts);
}
else
{
locator.findAssociatedScripts(this.clazz, scripts);
}
renderDependencies(response, scripts, null);
}