gpt4 book ai didi

jsf - Parent is not of type ActionSource

转载 作者:行者123 更新时间:2023-12-02 00:24:11 25 4
gpt4 key购买 nike

从 primefaces 3.0.M3 升级到 3.0.M4-SNAPSHOT 时出现此错误

@60,114 Parent is not of type ActionSource, type is: javax.faces.component.html.HtmlForm@1d9c3e7

我知道它也发生在其他库中,例如icefaces,但我不知道如何修复它。如有任何帮助,我们将不胜感激。

最佳答案

PrimeFaces 标签/组件根本没有被解析,因此被视为纯 HTML,这导致真正最接近的父 JSF 组件是 <h:form> .

这至少有两个原因:

  1. 你没有update来自 http://primefaces.prime.com.tr/ui 的 taglib 命名空间 URI到新的命名空间http://primefaces.org/ui这是在 M4 中引入的。

  2. PrimeFaces 3.0 M4 JAR 文件不在 Web 应用程序的运行时类路径中。验证此操作是否正确。这是通过将 JAR 放入 /WEB-INF/lib 来实现的。 ,或者如果它已被删除到其他地方,请将其包含在项目属性的部署程序集列表中(假设您使用的是 Eclipse)。

关于jsf - <f :setPropertyActionListener> Parent is not of type ActionSource,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8433542/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com