title: How to link external CSS resource with JSF h:outputStylesheet?
body: <p>I was wondering if I can use <code>&lt;h:outputStylesheet/&gt;</code> to link CSS from an external resources. I want to link the Yahoo Grids. Using the following code, I got a <code>RES_NOT_FOUND</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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:f="http://java.sun.com/jsf/core"      
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.prime.com.tr/ui"
        xmlns:tcmt="http://java.sun.com/jsf/composite/tcmt/component"&gt;
  
      &lt;h:head&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;h:outputStylesheet library="css" name="http://yui.yahooapis.com/3.3.0/build/cssgrids/grids-min.css" target="head" /&gt;
       &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>