Pretty faces simple mapping

454 Views Asked by At

I followed this simple tutorial on http://ocpsoft.org/prettyfaces/ with a simple mapping in pretty-config.xml but when I hit index mapping I get 404. Bellow the pretty-config.xml

<pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
                      http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd">

    <rewrite match="^/(.*)/$" substitute="/$1" redirect="301" />

    <url-mapping id="index">
        <pattern value="/index" />
        <view-id value="/index.xhtml" />
    </url-mapping>

</pretty-config>

I'm using JSF 2.1, Primefaces 3.5 and Prettyfaces 2.0.5

Thanks in advance!

0

There are 0 best solutions below