When using JSF, one can choose from several extensions like:
- /faces/*
- *.jsf
- *.xhtml
Where the last one is recommended for JSF 2.2 at least.
But what if I wanted to use the .jsf
extension, I get a problem here is that if someone were to type out of "curiosity" .xhtml
then weird stuff could start to happen if you for example mix JSF tags with normal HTML tags.
So I know that GlassFish server's Admin Console for example forces the URL rewrite to .jsf
if I type .xhtml
, how can I do this ?