In order to rewrite an URL, we just need to remove ‘.jsf’ extension. SO instead of appending so many url-mappins in pretty-config, we thought that it could be possible to use only one url-mapping that does the whole thing.
Here is the basic mapping:
<pattern value=”/company/contact” />
<view-id value=”/company/contact.jsf” />
We need to apply the same thing to all other urls so that /company/something.jsf becomes /company/something.
Thought about a REGEX & a parameter name but couldn’t figure how to.