title: Rendering facelet without container (with or without Seam)
body: <p>I would like to render a <strong>facelets</strong> page to <strong>html</strong> without running a web container. I've read that "Facelets does not depend on a web container" but I cannot do it.</p>
  
  <p>I've tried Seam (v 2.3.1) which has a 'FaceletsRenderer' with no luck. The code:</p>
  
  <pre><code>new org.jboss.seam.ui.facelet.FaceletsRenderer().render("test.xhtml");
  </code></pre>
  
  <p>Gives the error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NullPointerException
      at org.jboss.seam.ui.facelet.RendererRequest.cleanup(RendererRequest.java:72)
      at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:108)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
  </code></pre>
  
  <p>Anybody has any idea? Thanks in advance.</p>