primefaces编辑器显示真实的,当重新呈现 [英] primefaces editor displays true when re-rendered

查看:513
本文介绍了primefaces编辑器显示真实的,当重新呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目编辑:

<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.

这篇关于primefaces编辑器显示真实的,当重新呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆