Re: How to reproduce specific Friendly URL ?

Splash Forums PrettyFaces Users How to reproduce specific Friendly URL ? Re: How to reproduce specific Friendly URL ?

#20770

If you want to clean up the mappings, use parentId…

<url-mapping id="root">
<pattern value="/site/#{siteName:bean.siteName}" />
<view-id value="/faces/viewSite.jsf" />
<action>#{bean.loadSite}</action>
</url-mapping>
<url-mapping id="channel" parentId="root">
<pattern value="/#{channelName:bean.channelName}" />
<view-id value="/faces/viewChannel.jsf" />
<action>#{bean.loadChannel}</action>
</url-mapping>
<url-mapping id="subChannel" parentId="channel">
<pattern value="/#{subChannel:bean.subChannelName}" />
<view-id value="/faces/viewSubChannel.jsf" />
<action>#{bean.loadSubChannel}</action>
</url-mapping>