当我使用以下命令链接时:
<h:commandLink action="student" value="students" />
以及以下导航规则faces-config.xml
:
<navigation-rule>
<from-view-id>/home.xhtml</from-view-id>
<navigation-case>
<from-outcome>student</from-outcome>
<to-view-id>/student.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
然后我收到以下开发阶段面临的消息:
此链接已停用,因为它未嵌入 JSF 表单中。
这是如何引起的,我该如何解决?