title: primefaces update <head> content of a page
body: <p>I have a page Create.xhtml that contains</p>
  
  <pre><code>&lt;p:calendar .... /&gt;
  </code></pre>
  
  <p>In another page List.xhtml, that NOT CONTAINS ANY <code>&lt;p:calendar/&gt;</code>,</p>
  
  <p>with a Primefaces Ajax command (so WITHOUT ANY page recall/refresh) i call a </p>
  
  <pre><code>&lt;ui:include src="Create.xhtml"/&gt;
  </code></pre>
  
  <p>(Using the update param in the <code>&lt;p:ajax /&gt;</code> tag).</p>
  
  <p>The included page is displayed, but the <code>&lt;p:calendar/&gt;</code> doesn't work because, the page <code>&lt;head&gt;</code> tag didn't load the Primefaces calendar library.</p>
  
  <p>The only way to make <code>&lt;p:calendar/&gt;</code> work properly is to reload/refresh the entire page, but i need to do ajax request and update only the include, due to performance issues.</p>
  
  <p>Is there any way to do it? Like refresh/update only the head tag?</p>
  
  <p>EDIT: Create.xhtml content is in <code>&lt;ui:component&gt;</code> tag, and List.xhtml content is in a <code>&lt;ui:composition&gt;</code> tag (uses a template), both pages DON'T HAVE any <code>&lt;html&gt;</code> , <code>&lt;head&gt;/&lt;h:head&gt;</code> or <code>&lt;body&gt;/&lt;h:body&gt;</code> tag. All these tags are in the template, used by List.xhtml</p>