I've a 404 error code when I have the folloging pages.xml fragment :
<page view-id="/virtual/inexistant.jspx"> <navigation> <render view-id="/sample1.jspx"/> </navigation> </page>
/virtual/inexistant.jspx doesn't correspond to a real Jsf page. I want just to navigate to /sample1.jspx.
When I change the previous fragment with :
<page view-id="/virtual/inexistant.jspx"> <action execute="#{helper.sayHello}"/> <navigation> <render view-id="/sample1.jspx"/> </navigation> </page>
It works ! (I've Just added action element).
Is it a bug or am I missing sthing ?
Thanks
Navigation takes place when the view is submitted (or the action method returns) - so the navigation rules aren't run when you try to render a nonexistent page.