This is Neeraj, very new to Pretty Faces. Actually I have a web application build on Spring Web and JSF 1.2.x. I am trying to use ‘pretty faces’ for simplifying the URLs.
I was trying to configure with the help of Documentation and some googling but no luck, getting some issues.
When I tried debugging, I noticed that when I hit url with pattern, redirect takes place but nothing is displayed. When I looked at page the view source then I can see the xhtml content with JSF tags etc. Which means JSF tag transformation is not happening and eventually nothing is displayed.
Requesting you all to provide some insight so that I can proceed.
BTW: If you are starting to use PrettyFaces, I recommend to have a look at Rewrite instead. Rewrite is the successor of PrettyFaces and allows you to specify your configuration in a typesafe way like this:
Thanks for the help. using extension as “faces” worked.
Also I will look at ‘Rewrite” implementation.
Now with your help, most of links are working fine but I am noticing issues with ajax request(urls) which I make through Servlet. Basically I have servlet mappings for these URLs along with patterns defined in web.xml . All these request are turning into 404. I am sure that “Pretyfaces” would definitely be having some settings/config which can exclude my set of urls from precessing.
The typical way to avoid such issues is to restrict the PrettyFaces patterns to not match the URLs of your servlets. Could you post the relevant parts of your web.xml and your complete PrettyFaces configuration?