title: Primefaces tags are not working
body: <p>I am trying to jumpstart my Primefaces 3.2 development using Eclipse 3.6 and Glassfish 3.1 as app server.</p>
  
  <p>When I try to publish my application from Eclipse using this very simple code.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"&gt;
  
  &lt;ui:composition template="WEB-INF/template.xhtml"&gt;
      &lt;ui:define name="content"&gt;
          &lt;p:panel header="Login Form"&gt;
              &lt;h:form&gt;
                  &lt;p:button value="With Icon!" icon="bookmark" /&gt;
                  &lt;br /&gt;
                  &lt;p:spinner /&gt;
              &lt;/h:form&gt;
          &lt;/p:panel&gt;
      &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The Primefaces is not rendering. The button is showing but no icon and the spinner is showing just an input text.</p>
  
  <p>Not sure but I have put the primefaces jar file at the WEB-INF/lib folder.</p>
  
  <p>Although I see this error at glassfish log.</p>
  
  <pre><code>[#|2012-04-17T11:37:56.864+0800|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.renderkit|_ThreadID=23;_ThreadName=Thread-2;|WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
  sourceId=null[severity=(ERROR 2), summary=(One or more resources have the target of 'head', but no 'head' component has been defined within the view.), detail=(One or more resources have the target of 'head', but no 'head' component has been defined within the view.)]|#]
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Sorry here is my web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
      version="3.0"&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My template</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:ui="http://java.sun.com/jsf/facelets"&gt;
  &lt;head&gt;
    &lt;title&gt;&lt;ui:insert name="title"&gt;My Test Application&lt;/ui:insert&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="header"&gt;
      &lt;ui:insert name="header"&gt;
          &lt;h1&gt;Header&lt;/h1&gt;
      &lt;/ui:insert&gt;
  &lt;/div&gt;
  &lt;div id="content"&gt;
    &lt;ui:insert name="content"&gt;
  
    &lt;/ui:insert&gt;
  &lt;/div&gt;
  
  &lt;div id="footer"&gt;
    &lt;ui:insert name="footer"&gt;
          &lt;br/&gt;&lt;br/&gt;Footer!
    &lt;/ui:insert&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>