Thanks for you reply.
I did the changes suggested by you, but issue still pending.
I don't think so that navigation rule is not found by the controller (even if I give file extention as .xhtml in faces-config), as user is sucessfully navigated to the page given in the <to-view-id>.
But after he is navigated to that page he gets an error
Unable to find matching navigation case with from-view-id '/user/page1.xhtml' for action '#{myMB.getPageOutCome()}' with outcome 'PAGE1'
.
I m not able to understand why in above message from-view-id in quotes is displayed as to-view-id of face-config.xml file.
Please help me in understanding how exactly this works.
Note:
One of previously reported issue (
https://coderanch.com/t/569753/JSF/java/calling-javascript-function-after-execution) got resoved after I started specifying value in from-view-id instead of * sign.