Pretty-faces is a simple URL rewriting engine. All sorts of SEO is possible and it is really easy. We faced very small problem while using this long with Prime-Faces. The problem us file upload in Ajax environment stopped working because some how it is not able to identify rewritten URL.

Solution

After some Investigation, I found that we can make file upload work, if some how we can find actual url along with query parameter from pretty faces and add this on the h:form component action. I tweaked some solutions available in the fourms and created a new one to support my requirement.
Sample Pretty Faces Rewrite Rule
So the URL in address bar looks like
http://host.com/blog/sample-post
The Rewrite Rule maps the request internally to
http://host.com/blog?url=sample-post
Actual URL Generation Code