如果A.jsf
有一个commandLink
可以导航到的B.jsf
,那么我会认为当我在 page 时B.jsf
,我会看到http:domain/host/project/B.jsf
URL。但是,我http:domain/host/project/A.jsf
在地址栏上看到了。在导航控件中显示 URL 时,我总是落后。有没有办法来解决这个问题?我的导航控件是里面的句柄faces-config.xml
。
试试这个像Plaudit Design - Web Design
建议。但是没有修复它。
<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>