I’d like to redirect my app flow by using the ‘faces-config’ xml file resource like as the “redirect” tag.
So, here is my “faces” xml:
<navigation-rule>
<from-view-id>/index.xhtml</from-view-id>
<navigation-case>
<from-outcome>falha_etapa_1</from-outcome>
<to-view-id>/index.xhtml</to-view-id>
<redirect>
<redirect-param>
<name>msg</name>
<value>-1</value>
</redirect-param>
</redirect>
</navigation-case>
</navigation-rule>
And here, my jsf page:
<h:form>
<f:view>
<p:outputLabel value="${param['msg']}" />
and so on....
This print’s anything (blank)!!!!
Why could not print the parameter value?
Thanks!
Change
${param['msg']}to#{param['msg']}More info: