1

http://ocpsoft.org/prettyfaces/のこの簡単なチュートリアルに従って、pretty-config.xml で簡単なマッピングを行いましたが、インデックスマッピングをヒットすると 404 が返されます。

<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>

JSF 2.1、Primefaces 3.5、Prettyfaces 2.0.5 を使用しています

前もって感謝します!

4

0 に答える 0