现在我在 faces-config.xml 文件中给出我的导航规则。如果我想停止在 faces-config.xml 中输入条目。
如果我不想在 faces-config.xml 中指定导航规则,如何指定?
“面孔-config.xml”
<?xml version="1.0"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<navigation-rule>
<description>Navigation from the hello page.</description>
<from-view-id>/login.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/wsListing.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
<navigation-rule>
<description>Navigation from the hello page.</description>
<from-view-id>/wsListing.xhtml</from-view-id>
<navigation-case>
<from-outcome>ebzService</from-outcome>
<to-view-id>/ebzinput.xhtml</to-view-id>
<redirect />
</navigation-case>
<navigation-case>
<from-outcome>filterEbz</from-outcome>
<to-view-id>/filterebzinput.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
<navigation-rule>
<description>Navigation from the hello page.</description>
<from-view-id>/ebzinput.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/ebzoutput.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
</faces-config>