Instead of appending ?faces-redirect=true
to every action in my <h:commandButton />
, I would like to use it once for good in faces-config.xml
but I am not yet sure of the consequences of using it.
It stipulates that redirect
will be used instead of forward
. But what are the consequences? Is it a bad practice, does it affect persistence and servlet requests and responses?
For me, the use of REDIRECT is only for correct URL browser displaying. I intend to use something like this :
<navigation-rule>
<from-view-id>/*</from-view-id>
<navigation-case>
<from-outcome>*</from-outcome>
<redirect />
</navigation-case>
</navigation-rule>
Many thanks for your guidance.