Primefaces编辑器在重新渲染时显示为true

use*_*415 5 ajax jsf primefaces

我的项目中有一个编辑器:

<p:editor id="content" value="#{myBean.content}" width="1000" height="400"/>
<h:message for="content" errorClass="invalid"/>
Run Code Online (Sandbox Code Playgroud)

当我在commandLink中使用Ajax刷新表单时:

<p:commandLink styleClass="btn" action="#{myBean.save()}" value="Save">
    <f:ajax render="@form" execute="@form" />
</p:commandLink>
Run Code Online (Sandbox Code Playgroud)

p:edit元素的内容切换为“ true”,我无法再对其进行修改。这仅在我起诉Firefox时发生,使用chrome可以正常工作。知道如何解决吗?

leo*_*rer 2

我不知道为什么,但如果你将 f:ajax 更改为 p:ajax,如下所示:

<p:commandLink styleClass="btn" action="#{myBean.save()}" value="Save">
    <p:ajax process="@form" update="@form" />
</p:commandLink>
Run Code Online (Sandbox Code Playgroud)

一切正常。