how do I build a Facelets site at build-time? <p>I want to use Facelets to build a static HTML prototype. This prototype will be sent out to people who do not have a running web application server such as Tomcat. Is there some way to compile a Facelets site at build-time (using Ant etc) into a set of flat HTML files?</p> <p>In the simplest case we have two facelets like this:</p> <pre class="lang-xml prettyprint-override"><code>&lt;!-- layoutFacelet.xhtml --&gt; &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"&gt; &lt;ui:insert name="content" /&gt; &lt;/ui:composition&gt; &lt;!-- implementationFacelet.xhtml --&gt; &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" template="layoutFacelet.xhtml"&gt; &lt;ui:define name="content"&gt; HELLO WORLD &lt;/ui:define&gt; &lt;/ui:composition&gt; </code></pre> <p>The output would be a single html (e.g. "implementationFacelet.output.html") like:</p> <pre><code>HELLO WORLD </code></pre> <p>In other words, Facelets is running at build-time rather than render-time, in order to produce static flat-file prototypes.</p>