Question

I want to define a navigation case in faces-config.xml to do a page reload/refresh, without navigating to another page on certain outcome from any view id. How do I define it in faces-config.xml as I dont have any specific to-viewId to hardcode in faces-config.xml ?

Was it helpful?

Solution

You can use EL expressions in your faces-config.xml file.

To return to the current view, for example:

<navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>#{view.viewId}</to-view-id>
 </navigation-case>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top