I have added the dependecy to my pom.xml for jsf2 and now i face a problem.
If i add the filter into my web.xml before other filters, prettyfaces filter is called before my own ones, if i remove the entry(i should be able to do this because gf 3.1.1 is a servlet 3.0 container), the filter is called after my filters(should not be the case).
Anyway it does not work really, can i turn on logging or so to determine which requests were forwarded or so?
Beside this problem, on which EJB container does pretty faces work without any problems? I do not like this overhead to be able to use the library and i would move to an other container.
You can enable logging for com.ocpsoft.pretty. We are currently using commons-logging. So the log entries will be forwarded to the logging framework Glassfish is using (JCL?).
I think PrettyFaces works with most containers without any issues. To be honest, I have the feeling that mostly Glassfish users have problems. I’m using PrettyFaces mainly on JBoss and Tomcat and everything works fine.
Regarding the filters: In theory the PrettyFilter should be automatically be added in front of all other filters. It is the first time I’m hearing that it is not working.
But if it doesn’t work you can still add the filter manually to your web.xml and then place it in front of or after other filters just like you want it to be. You will just have to use the same name for the PrettyFilter as the name that is declared in PrettyFaces’ web-fragment.xml so that the filter is not added twice.