1.

How To Declare The Page Navigation (navigation Rules) In Faces-config.xml File?

Answer»

Navigation RULES tells JSF implementation which page to send back to the browser after a FORM has been SUBMITTED. We can declare the page navigation as follows:
<naviagation-rule&GT;
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</naviagation-rule>
This DECLARATION states that the login action navigates to /welcome.jsp, if it occurred inside /index.jsp.

Navigation rules tells JSF implementation which page to send back to the browser after a form has been submitted. We can declare the page navigation as follows:
<naviagation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</naviagation-rule>
This declaration states that the login action navigates to /welcome.jsp, if it occurred inside /index.jsp.



Discussion

No Comment Found