Reply To: view-id is getting ignored and everything gets redirected to my "welcome-file"

Splash Forums PrettyFaces Users view-id is getting ignored and everything gets redirected to my "welcome-file" Reply To: view-id is getting ignored and everything gets redirected to my "welcome-file"

#24124

tiagoperes
Participant

Thank you for answering Lincoln. I updated my dependencies to “rewrite-servlet 2.0.2.Final” and “rewrite-config-prettyfaces 2.0.2.Final”. I also removed the PrettyFaces filter from my web.xml, now there’s nothing concerning Prettyfaces in this file. My pretty-config.xml continues under the WEB-INF folder.

When I initialize my application, the only log I get from Prettyfaces is:

Jun 06, 2013 2:29:52 PM org.ocpsoft.rewrite.faces.RewritePhaseListener
INFO: RewritePhaseListener starting up

None of my mapping works, I get error 404 every time I try to access a URL that doesn’t correspond to a JSF view-id.

The pages are correctly loaded when I access the URLs directly (/faces/page.xhtml). I thought that, maybe, Prettyfaces was not loading pretty-config.xml, I tried to specify the config file in my web.xml through the parameter “com.ocpsoft.pretty.CONFIG_FILES”, but it didn’t work.

I also tried this in 2.0.1.Final, I had the same problem.

My mapping file is attached to the original post.