title: ResourceDependency annotation doesn't work in a UIComponent and generates "RES_NOT_FOUND" error in the src
body: <p>I'm developing a UIComponent that uses a javascript file with @ResourceDependency annotation, but instead of generating a link to the file, it just prints "RES_NOT_FOUND" in the src atribute, like this:</p>
  
  <p><code>&lt;script type="text/javascript" src="RES_NOT_FOUND"&gt;&lt;/script&gt;</code></p>
  
  <p>Follow the java code:</p>
  
  <pre><code>@ResourceDependency(name="file.js")
  public class ComponenteTest extends UIComponentBase {
  </code></pre>
  
  <p>Does anybody know what's happening?</p>