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?

#20506

EugeneV
Participant

Never mind, I do need Hibernate session for both cases, and the extra requests came from loading PrimeFaces resources, which is also done via *.jsf, matching url-pattern in web.xml filter-mapping.

I moved my report-related *.xhtml files to their own subdirectory, so that a single url-pattern in web.xml filter-mapping could detect both “pretty” and regular URLs and then open a Hibernate session for such requests (but would exclude PrimeFaces resources, also loaded via *.jsf requests). So, both /report/reportTag or /report/report-whatever.jsf?reportTag=anything should work.

However, something major changed between versions 3.1.0 and 3.2.0. With my setup, PrettyFaces could not find the viewIds for mappings like

<url-mapping id="report">
<pattern value="report/#{reportBean.reportTag}" />
<view-id>/report/dashboard.jsf</view-id>
<action>#{reportBean.loadReport}</action>
</url-mapping>

With the same configuration using 3.1.0, I see a different issue: for some reason, it sets reportTag to ‘dashboard.jsf’ in the example above, rather than setting it to the matched pattern (e.g. ‘main’ for ‘http://localhost/report/main’). What’s going on? It gets confused by multiple slashes in view-id value?