we are trying on a functionality of accessing a pageX.xhtml in testX module being in a page pageY.xhtml of testY module.
In pageX.xhtml of testX , on click of command link, it should get redirected to pageY.xhtml of testY module.
In pageX.xhtml, the commandLink is defined as below:
Code: Select all
<h:commandLink styleClass="textLink" actionListener="#{myBean.viewPageY}" value="View pageY">
<f:param ..../>
</h:commandLink>
For the String "toPageY", defined a navigation rule in faces-config.xml as below:
Code: Select all
<navigation-case>
<from-outcome>toPageY</from-outcome>
<to-view-id>/testY/pageY.faces</to-view-id>
<redirect />
</navigation-case>
But the application is getting redirected to a page where the menu s of the application are displayed(the menu page after the login page).
the menu page is configured in faces-config as below:
Code: Select all
<navigation-case>
<from-outcome>home</from-outcome>
<to-view-id>/menupage.faces</to-view-id>
<redirect />
</navigation-case>
Thanks in advance