Splash › Forums › PrettyFaces Users › PrettyFaces 3.3.3 toCase rewrite problem
This topic contains 4 replies, has 3 voices, and was last updated by Christian Kaltepoth 5 years, 5 months ago.
This is my config:
<pattern value="/test/" />
<view-id value="/test.html" />
In 3.3.2 version it was working ok (301 redirect from /TEST/ to /test/).
Now I get JSF warning:
WARNING: /TEST/index.xhtml Not Found in ExternalContext as a Resource
Sorry, I cannot reproduce it. I added the same rewrite rule to one of my test applications and it’s working fine:
$ curl -v "http://localhost:8080/prettyfaces-demo/WELCOME"
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /prettyfaces-demo/WELCOME HTTP/1.1
> User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/188.8.131.52 libidn/1.22 librtmp/2.3
> Host: localhost:8080
> Accept: */*
< HTTP/1.1 301 Moved Permanently
< Server: Apache-Coyote/1.1
< Location: /prettyfaces-demo/welcome
< Transfer-Encoding: chunked
< Date: Fri, 16 Mar 2012 16:14:58 GMT
* Connection #0 to host localhost left intact
* Closing connection #0
Do you have any other rewrite rules in your config?
Could you create a minimal Maven project to reproduce this?
Sorry, there was a bug in my app.
how to apply toCase with annotation ?
Rewrite rules cannot be declared using annotations. You have to use the PrettyFaces XML configuration for this. Sorry.
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!