Re: How do I combine Path params with Query params?

Splash Forums PrettyFaces Users How do I combine Path params with Query params? Re: How do I combine Path params with Query params?

#20513

EugeneV
Participant

If you are not too tired of me yet… Using 3.2.0:

<url-mapping id="report">
<pattern value="/report/#{/[a-zA-Z]+[\w-]*/ reportBean.reportTag}" />
<view-id>/reports/dashboard.jsf</view-id>
<action>#{reportBean.loadReport}</action>
</url-mapping>

<url-mapping id="report-reportDate" parentId="report">
<pattern value="/#{/\d{8}/ reportDate : reportBean.reportDateString}" />
<view-id>/reports/dashboard.jsf</view-id>
<action>#{reportBean.loadReport}</action>
</url-mapping>

This doesn’t work: HTTP Status 404 – /report/main/20101223

If I do not try to be fancy and just spell out,

<url-mapping id="report-reportDate">
<pattern value="/report/#{/[a-zA-Z]+[\w-]*/ reportBean.reportTag}/#{/\d{8}/ reportDate : reportBean.reportDateString}" />
<view-id>/reports/dashboard.jsf</view-id>
<action>#{reportBean.loadReport}</action>
</url-mapping>

then it works fine.