file « Servlet « JSF Q&A





1. Explicit directory for JSF template files    stackoverflow.com

I'm just getting into Seam/JSF development and looking for a way to lookup the XHTML template files from a different location. When configuring the JSF application like this:

<servlet>
  <servlet-name>Faces Servlet</servlet-name>
  ...

2. How to set JSF2 with faces servlet mapping?    stackoverflow.com

I have a simple JSF2 app using Facelets. My web.xml is set as follows:-

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping> 
I want to set the app to default to the welcome page which is /pages/login.xhtml. I ...

3. jsf welcome file not recognized    stackoverflow.com

accessing http://localhost:8080/basicSetup/faces/index.xhtml works, with the output of :

Hello World ! Albert Kam
but accessing http://localhost:8080/basicSetup shows
Hello World ! #{myBean.value}
meaning that the welcome file is not rendered as ...