Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

primefaces editor displays true when re-rendered

I have an editor in my project:

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

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>

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?

like image 750
user2451415 Avatar asked Jul 14 '14 18:07

user2451415


1 Answers

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.

like image 87
leomeurer Avatar answered Nov 20 '22 22:11

leomeurer