JSF2 ページへの REST URL マッピング用の prettyfaces ライブラリを試しています。
まず、maven の pom.xml で prettyfaces を設定しました。
<dependency>
<groupId>com.ocpsoft</groupId>
<artifactId>prettyfaces-jsf2</artifactId>
<version>3.3.3</version>
</dependency>
次に、私の pretty-config.xml:
<pretty-config xmlns="http://ocpsoft.com/prettyfaces/3.3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.com/prettyfaces/3.3.2
http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.2.xsd">
<url-mapping id="view-marchi">
<pattern value="/marchi/{urlMarchio}" />
<view-id value="/marchio.xhtml" />
</url-mapping>
</pretty-config>
webapp ルート フォルダーに marchio.xhtml があります。www..com/marchio.xhtml に直接アクセスして動作しています。
ただし、マッピングは期待どおりに機能しません。
www..com/marchi/testparam
404お探しのページが見つかりませんでした!
意味がわかりません...何か間違っていますか?それとも、何か設定が間違っているのでしょうか..?