我正在编写jsf Web应用程序。我在netbeans中使用primefaces和glassfish。
我想使用CKEditor但是我收到错误
的pom.xml:
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>2.1.0</version>
</dependency>
我的组件news.xhtml:
<pe:ckEditor id="editor" value="#{compNoticiaManutencaoMB.content}" interfaceColor="#D8D8D8" >
<p:ajax event="save" listener="#{compNoticiaManutencaoMB.saveListener}" update="growl"/>
</pe:ckEditor>
错误:
INFO: Exception when handling error trying to reset the response.
java.lang.NoSuchFieldError: INPUT_TEXT_EVENTS
...
WARNING: JSF1087: Unable to generate Facelets error page as the response has already been committed.
SEVERE: javax.faces.FacesException: INPUT_TEXT_EVENTS
javax.faces.FacesException: INPUT_TEXT_EVENTS
答案 0 :(得分:0)
这是因为org.primefaces.util.HTML不包含INPUT_TEXT_EVENTS。解决方案是更新到Primefaces 5或将PrimeFaces Ext降级到版本1.2.1