Using JSF navigation rules in the component

Top  Previous  Next

1.Define necessary navigation rules in the faces-config element of your application configuration file .

 

<navigation-rule>

       <navigation-case>

               <from-outcome>action0</from-outcome>

<to-view-id>/components/toolbar/corpsites.jsp</to-view-id>

       </navigation-case>

       ...

</navigation-rule>

 

 

2.Use tree:item tag property to specify which navigation rule to use.

 

<tree:item type="folder"

               data="test.html"

               description="Corporations"

               navigationAction="action0">