If A.jsf
have a commandLink
that will navigation to B.jsf
, then I would think when I am at page B.jsf
, I see http:domain/host/project/B.jsf
as the URL. However, I see http:domain/host/project/A.jsf
on my address bar. I am always ONE behind when displaying the URL in navigation control. Is there away to fix this? My navigation control is handle inside faces-config.xml
.
Try this like Plaudit Design - Web Design
suggest. However does not fix it.
<navigation-rule>
<from-view-id>/CentralFeed.xhtml</from-view-id>
<navigation-case>
<from-outcome>CREATE EVENT</from-outcome>
<to-view-id>/CreateEvent.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>CREATE ARTICLE</from-outcome>
<to-view-id>/WriteArticle.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>PROFILE</from-outcome>
<to-view-id>/Profile.xhtml</to-view-id>
</navigation-case>
<redirect/>
</navigation-rule>