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?

#20498

EugeneV
Participant

Thanks for the regexp!

I made my bean session-scoped because the page includes an iframe, and both inner and outer pages contain elements from the same bean, which I did not want to create twice per request. It seems that view scope would not help here either.

What happens if I redirect one url-mapping in pretty-config.xml to another? Like:

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

It appears to work as expected, except I do not see the effect of other filters that were called earlier in the chain. In my case, I open a Hibernate session and begin transaction first, than chain.doFilter calls PrettyFilter, which works fine except for this redirect scenario.