title: JSF page lost style after partial update
body: <p>I have some troubles with partial update of jsf 2.0 page.
  I have dropdown menu with few choices. Depending on choice I show different page. When I load page first time it shows css and javascript works fine. When I change another option in dropdown menu this part of page which has been re rendered appearing without css and javascript on it doesn't work.</p>
  
  <p>This is example of page itself which I using, template.xhtm and bean are pretty generic therefor I didn't include it. </p>
  
  <pre><code>&lt;ui:composition template="/template.xhtml"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:h="http://java.sun.com/jsf/html"&gt;
  
  &lt;ui:define name="body"&gt;
  
  &lt;h:form&gt;
      &lt;h:selectOneMenu value="#{bean.answer}"&gt;
          &lt;f:selectItems value="#{bean.answers}" /&gt;
          &lt;f:ajax event="change" render="includeContainer @All" /&gt;
      &lt;/h:selectOneMenu&gt;
  &lt;/h:form&gt;
  
  
  
  &lt;h:panelGroup id="includeContainer"&gt;
      &lt;h:panelGroup library="primefaces" name="jquery/jquery.js"
          rendered="#{bean.answer == 'yes'}"&gt;
          &lt;ui:include src="answer_yes.xhtml"&gt;&lt;/ui:include&gt;
      &lt;/h:panelGroup&gt;
      &lt;h:panelGroup rendered="#{bean.asnwer == 'no'}"&gt;
          &lt;ui:include src="answer_no.xhtml"&gt;&lt;/ui:include&gt;
      &lt;/h:panelGroup&gt;
  &lt;/h:panelGroup&gt;
  
  
  &lt;/ui:define&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>One important remark regarding template that I use this statement to include css, it's located on remote server and I can't download and place it locally, it's company's policy.</p>
  
  <pre><code>&lt;link href="http://server.com/resources/w3.css" rel="stylesheet" title="w3" type="text/css" /&gt;
  </code></pre>
  
  <p>Thank you in advance for your help.</p>