Re: conditional url-mapping

Splash Forums PrettyFaces Users conditional url-mapping Re: conditional url-mapping

#21409

m1m
Participant

Hmm, pretty:mappingId didn’t solve my problem:

<url-mapping id="products">
<pattern value="/products/"/>
<view-id value="/products.html"/>
</url-mapping>

<url-mapping id="productsGroup" parentId="products">
<pattern value="#{group}/"/>
<view-id value="/products.html"/>
</url-mapping>

<url-mapping id="productsProducer" parentId="products">
<pattern value="#{producer}/"/>
<view-id value="/products.html"/>
</url-mapping>

I’m using the following link, but it is resolved as productsGroup (group param is set instead of producer)

<h:link outcome="pretty:productsProducer" value="#{p}">
<f:param name="producer" value="#{fn:toLowerCase(p)}"/>
</h:link>