Uncaught TypeError: Cannot read properties of null (reading 'css')

问题描述 投票:0回答:0

我在将 PrimeFaces 与现有 JSF 应用程序集成时遇到了这个问题。我正在尝试集成 PrimeFaces 的编辑器。以下是基于代码:

<html>
<h:outputScript library="primefaces" name="jquery/jquery.js" target="head" />
<t:div rendered="#{model.mimeType == 'application/rtf'}" forceId="true" id="rtfEditor">
    <p:editor id="editor" widgetVar="editorWidget" value="#{editorView.text}" width="1000" height="500" />
</t:div>
</html>
Uncaught TypeError: Cannot read properties of null (reading 'css')
    at HTMLDocument.<anonymous> (jquery-plugins.js.xhtml?ln=primefaces&v=6.1:337:9081)
    at i (jquery.js.xhtml?ln=primefaces&v=6.1:25:25791)
    at Object.fireWith [as resolveWith] (jquery.js.xhtml?ln=primefaces&v=6.1:25:26797)
    at Function.ready (jquery.js.xhtml?ln=primefaces&v=6.1:25:28871)
    at HTMLDocument.bY (jquery.js.xhtml?ln=primefaces&v=6.1:25:29263)

使用以下版本: Jdk:8 日本金融:2.2 PrimeFaces:6.1

一些搜索结果建议确保 jQuery 插件存在,我可以查看 jQuery 与 PrimeFaces 插件绑定。

帮助将不胜感激。

jsf primefaces
© www.soinside.com 2019 - 2024. All rights reserved.