Hi everybody,
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>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
when I enter a URL like:
http://localhost/test.seam
The system loads the XHTML file at
<webapp>/test.xhtml
What I'd like to configure is a prefix directory, so that the file is being looked up from
<webapp>/WEB-INF/views/test.xhtml
So, is there any way to achive something like this:
<context-param>
<param-name>javax.faces.DEFAULT_PREFIX</param-name>
<param-value>/WEB-INF/views/</param-value>
</context-param>
Thanks for your help!