Use

<from-view-id>*</from-view-id>
<navigation-case>
    <from-outcome>option1</from-outcome>
    <to-view-id>/menu_option_1.jsp</to-view-id>
</navigation-case>
<navigation-case>
    <from-outcome>option2</from-outcome>
    <to-view-id>/menu_option_2.jsp</to-view-id>
</navigation-case>


Tom

-----Original Message-----
From: barf [mailto:[EMAIL PROTECTED] 
Sent: November 19, 2006 6:04 PM
To: [email protected]
Subject: how does navigation by menu fit in with faces-config.xml file ?


Don't know much about JSF yet - being 'urged' to use it by customer. But if
one of the benefits is that the 'controller' part of mvc is exposed in the
faces-config.xml file - how would one handle navigation from a menu eg. a
jscookmenu where you can navigate to say 25 different destinations ? Surely
you wouldn't have 25 <navigation-case>s for each screen ?


<navigation-rule>
  <from-view-id>/userLogin.jsp</from-view-id>
  <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/userLoginSuccess.jsp</to-view-id>
  </navigation-case>
  <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/userLogin.jsp</to-view-id>
  </navigation-case>
</navigation-rule>

-- 
View this message in context:
http://www.nabble.com/how-does-navigation-by-menu-fit-in-with-faces-config.x
ml-file---tf2665844.html#a7434621
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to