title: JSF and automatic reload of xhtml files
body: <p>I had some problems with hot-reloading XHTML files using JRebel, Spring, JSF Mojarra 2.0.3 and WebLogic 10.3.</p>
  
  <p>JRebel reloads regular Java classes and js/css files under /WebContent successfully, but not JSF's .xhtml files. A full republish was necessary to get xhtml files updated on the server.</p>
  
  <p>By trial and error I finally got it to work by adding some facelets parameters to web.xml and creating a custom ResourceResolver as described <a href="http://www.warski.org/blog/2007/12/instant-facelets-changes-in-xhtml-and-no-redeploying/" rel="noreferrer">in this blog post</a>. </p>
  
  <p>However, I wonder WHY this works, and more specifically:</p>
  
  <ul>
  <li>Why is a custom ResourceResolver needed? </li>
  <li>Isn't JRebel supposed to handle this by monitoring /WebContent where the xhtml files reside? </li>
  <li>I'm guessing it has something to do with Facelets/JSF compiling xhtml to servlets(?) via FacesServlet which JRebel is unable to detect? </li>
  </ul>