You need to change the javax.faces.DEFAULT_SUFFIX parameter (in web.xml)
<context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.jsf</param-value> </context-param>
However, this is not recommended - use .xhtml or .jsp for your files. Please note that you can use .jsp with facelets without problems (if, for example, autocompletion of your IDE does not work for .xhtml ).
Also note:
- face servlet mapping determines how jsf pages link in terms of http
- The
DEFAULT_SUFFIX parameter indicates the file extension.
Bozho source share