title: Can't access javascript file in jsf component
body: <p>I have a jsf component that must access to a javascript file, i added this whith outputScript as in the code bellow, I get an error in the generated html,  and the javascript can't be reached.
  The javascript file is located in document_root/js directory</p>
  
  <p>How can i resolve this problem, thank you for your help.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:composite="http://java.sun.com/jsf/composite"
        xmlns:c="http://java.sun.com/jsp/jstl/core"&gt;
  &lt;h:head&gt;&lt;title&gt;(For validation only)&lt;/title&gt;
  &lt;link href="./css/styles.css" 
        rel="stylesheet" type="text/css"/&gt; 
  &lt;/h:head&gt;
  &lt;h:body&gt;
  &lt;composite:interface/&gt;
  &lt;composite:implementation&gt;
  &lt;h:outputScript library="js" name="messages.js" /&gt;
  &lt;h:outputScript library="js" name="DateValidation.js" /&gt;
  
  &lt;h:form id="f"&gt;
      &lt;h:outputText value="Date" /&gt;
      &lt;h:inputText id="dateA" 
          onblur="return validateDateField('f:dateA');"&gt;
      &lt;/h:inputText&gt;
  &lt;/h:form&gt;   
  
  &lt;/composite:implementation&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>