title: Accessing and using .jsf files from the database
body: <p>What is the best way to enable my webapplication to use JSF files stored in the database?
  I'd like to be able to dynamically (during runtime) create new JSF pages which will be made available without having to redeploy the application.</p>
  
  <p>So in other words: I would like to store the bigger part of my JSF pages in the database and would like JSF to use the database as a datasource for getting JSF files.</p>
  
  <p>I've thought long about a solution and found some possible ways. However, I haven't been able to implement either of them.</p>
  
  <ol>
  <li>Whenever a new page has to be added/removed: manipulate the files in the classpath (e.g. remove or add a file to the .war file)</li>
  <li>Extending the classpath of the webapplication so it will be able to get files from an at runtime defined location (i.e. /tmp or directly using a database connection)</li>
  <li>Provide JSF with a way to find resources another way ( this doesn't seem possible? )</li>
  </ol>
  
  <p>My environment:</p>
  
  <ul>
  <li>Java SE 6</li>
  <li>Jetty as servlet container</li>
  <li>Mojarra as jsf implementation</li>
  </ul>
  
  <p>Now, my question:</p>
  
  <p><b>Is it possible for someone to let JSF find pages at a location other than the default classpath, preferably the database?</b></p>
  
  <p>Any response is greatly appreciated!</p>