h:commandLink 导致 JS Uncaught TypeError:无法将属性 'adp' 设置为 null

Ali*_*ice 3 jsf

我得到以下错误

jsf.js.xhtml?ln=javax.faces:1 Uncaught TypeError: 无法设置 null 的属性“adp”

当我添加h:form使用h:commandLink

<h:form>
    <h:commandLink value="View AMC" action="#{treeTableManagedBean.redirectPage()}" />
</h:form>
Run Code Online (Sandbox Code Playgroud)

小智 5

我猜你把它h:form放在另一个HTML 或 JSF 页面h:form.Nestingh:form是不允许的。再次交叉检查。

我曾经遇到过这个问题。这就是我超越例外的原因。