title: Partial page update when navigating (PrimeFaces ajax)
body: <p>I have done a basic JSF app, using facelets templates. My template is as follows:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.prime.com.tr/ui"
        xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  
      &lt;h:head&gt;
          &lt;!-- Links to CSS stylesheets... --&gt;
          &lt;title&gt;&lt;ui:insert name="title" /&gt; - FManager&lt;/title&gt;
      &lt;/h:head&gt;
  
      &lt;h:body&gt;
          &lt;div id="wrapper"&gt;
              &lt;div id="header"&gt; &lt;b&gt;FManager&lt;/b&gt; Application &lt;/div&gt;
  
              &lt;div id="content"&gt;
                  &lt;p:growl id="growl" /&gt;
                  &lt;ui:insert name="content"&gt;
                      Sample content.
                  &lt;/ui:insert&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div id="footer"&gt;Made using JSF and Primefaces&lt;/div&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And then I have a <em>Main Page</em> (shown below) that navigates to a <em>Second Page</em>. Both pages use the template above.</p>
  
  <pre><code>&lt;ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:p="http://primefaces.prime.com.tr/ui"
                  template="./template.xhtml"&gt;
  
      &lt;ui:define name="title"&gt;Main page&lt;/ui:define&gt;
  
      &lt;ui:define name="content"&gt;
          &lt;h2&gt;Welcome to the &lt;b&gt;FManager&lt;/b&gt; application&lt;/h2&gt;
  
          &lt;h:form&gt;
              &lt;p&gt;Click the button below to create the first entry!&lt;/p&gt;
              &lt;p:commandButton value="Create entry" action="create" /&gt;
          &lt;/h:form&gt;
      &lt;/ui:define&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>If I use <code>&lt;redirect/></code> in faces-config.xml, it navigates, but the <strong>full</strong> page is reloaded. My question is:</p>
  
  <p><b>Is there a way to navigate from a page to another updating ONLY the <code>&lt;ui:insert></code> sections of the template?</b> (While leaving the rest of the page intact)</p>
  
  <p>Thanks!</p>