Extension « Page « JSF Q&A





1. How can I make JSF 2.0 page with .jsf extension?    stackoverflow.com

The default one is xhtml. I want to change it to .jsf. Is this possible using facelets/jsp or using anyone of these two?

2. Remove faces servlet url pattern and page extension from url    stackoverflow.com

i have a command link in my page which looks like:

<h:commandLink value="Add user" action="add?faces-redirect=true" />
and when i click it, it goes to url:
http://localhost:8080/myapp/faces/add.xhtml
but i want the url to be:
http://localhost:8080/myapp/add
how to do ...