primefaces编辑器显示真实的,当重新呈现编辑器、真实、primefaces

2023-09-10 22:17:18 作者:七秒钟的记忆

我在我的项目编辑:

<p:editor id="content" value="#{myBean.content}" width="1000" height="400"/>
<h:message for="content" errorClass="invalid"/>

当我刷新我的形式在commandLink用ajax:

and when I refresh my form using ajax in a commandLink:

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

在P的内容:编辑元素切换到真实,我不能修改它了。这只是发生在我起诉火狐,铬它工作正常。不知道如何解决它?

the content of the p:edit element switches to "true" and I can't modify it anymore. This only happens when I sue firefox, with chrome it works normally. Any idea how to fix it?

推荐答案

我不知道为什么,但如果你改变F:阿贾克斯的号码:阿贾克斯这样的:

I don't know why but if you change f:ajax for p:ajax like this:

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

一切工作正常。

everything works fine.