Re: Error parsing view-id (correct config is not working)

Splash Forums PrettyFaces Users Error parsing view-id (correct config is not working) Re: Error parsing view-id (correct config is not working)

#20758

parindam
Participant

somehow edited web.xml in my previous post, now will try with pretty-config.xml

pretty-config.xml

===================

<pretty-config xmlns=”http://ocpsoft.com/prettyfaces/3.2.0″

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://ocpsoft.com/prettyfaces/3.2.0

http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.2.0.xsd“>

<!– Begin Example RewriteRules

// These are custom rewrite-rules, and are probably not necessary for your application.

<rewrite match=”^/old-url/(w+)/$” substitute=”/new_url/$1/” redirect=”301″ />

–>

<url-mapping id=”brand”>

<pattern value=”/brand/#{ brandID : buyBacking.selectedBrandID }/” />

<view-id value=”/faces/brand/buyBrand.xhtml” />

</url-mapping>

<!– Begin UrlMappings

// These are examples of URL mappings, and should be customized for your application.

<url-mapping id=”home”>

<pattern value=”/” />

<view-id>/faces/index.jsf</view-id>

</url-mapping>

<url-mapping id=”store”>

<pattern value=”/store/” />

<view-id>/faces/shop/store.jsf</view-id>

</url-mapping>

<url-mapping id=”viewCategory”>

<pattern value=”/store/#{ cat : bean.category }/” />

<view-id>/faces/shop/store.jsf</view-id>

</url-mapping>

<url-mapping id=”viewItem”>

<pattern value=”/store/#{ cat : bean.category }/#{ iid : bean.itemId }/” />

<view-id>/faces/shop/item.jsf</view-id>

<action>#{bean.loadItem}</action>

</url-mapping>

–>

</pretty-config>