PrettyFaces 3.3.3 toCase rewrite problem

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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18227

    m1m
    Participant

    This is my config:

    <rewrite toCase="lowercase"/>
    <url-mapping id="test">
    <pattern value="/test/" />
    <view-id value="/test.html" />
    </url-mapping>

    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

    #22294

    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/1.2.3.4 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?

    #22295

    m1m
    Participant

    Sorry, there was a bug in my app.

    #22296

    msaleh
    Participant

    how to apply toCase with annotation ?

    #22297

    Rewrite rules cannot be declared using annotations. You have to use the PrettyFaces XML configuration for this. Sorry.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Comments are closed.