Re: How to config the pretty-config.xml for primeFaces showcase?

Splash Forums PrettyFaces Users How to config the pretty-config.xml for primeFaces showcase? Re: How to config the pretty-config.xml for primeFaces showcase?

#20291

You need a mapping for each view file. PrettyFaces will not “clean up” URLs for resources unless you tell it to:

<url-mapping id="slider">
<pattern value="/slider" />
<view-id>/ui/slider.jsf</view-id>
</url-mapping>

<url-mapping id="ajax">
<pattern value="/ajax" />
<view-id>/ui/ajax/ajaxHome.jsf</view-id>
</url-mapping>

Also, if the links are hard-coded with HTML, not using JSF components, I highly doubt that PrettyFaces will alter the HREF attribute. You’ll need to change these over to use <h:link> instead. Then PrettyFaces will correctly be able to modify the URLs.

<h:link target="/ui/slider.jsf"/>
<h:link target="/ui/ajax/ajaxHome.jsf"/>