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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With