0
我有一個問題,用正確的導航使用如何使用導航規則
這是我的主要JSF:
<ui:define name="content">
<h:form id="mainForm" prependId="false">
<ui:include src="home_page.xhtml"/>
</h:form>
</ui:define>
home_page JSF:
<h:form id="jh" prependId="false">
<p:commandButton id="myb" action="failure" value="te" />
</h:form>
網站XML:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>faces/main.xhtml</welcome-file>
</welcome-file-list>
and faces-config xml:
<navigation-rule>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/core.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
任何想法我在這裏失蹤?
由於
最新問題?什麼不工作? – Makky
問題是它沒有導航到core.xhml – angus