Java Interview Questions: - Explain navigation rules ?

50 0 0
                                        

Navigation rules tells JSF implementation which page to send back to the browser after a form has been submitted

<navigation-rule>     

    <from-view-id>/page1.jsp</from-view-id>

         <navigation-case>

                       <from-outcome>eventAction</from-outcome>

                        <to-view-id>/page2.jsp</to-view-id>

</navigation-case>

</ navigation -rule>

The above configuration says that navigation will happen to page2.jsp if the action eventAction happens inside page1.jsp

See the rightside video on Getting Started with Servlet in Java: -

Java Interview Questions: - Explain navigation rules ?Where stories live. Discover now