Question

i'm using primefaces <p:inplace /> and <p:editor /> to simulate inline editing in my project. the problem is that when i'm finished editing the inplace shows me html code as a result. Image of the probleme : enter image description here

what i want is some thing like this <h:outputtext escape="false"> but in <p:inplace/> when i searched i found something about averriding the InplaceRendered and i'm beginner and i really don't know how to do that. can anyone explane to me how to? thinks.

Was it helpful?

Solution

Editing the PrimeFaces code would be the last option to take.

There was already a similar issue, take a look at this page:

PrimeFaces - Issue 4330

The solution for you could be something like:

<p:inplace editor="true">
    <f:facet name="output">
        <h:outputText value="#{yourBean.text}" escape="false" />
    </f:facet>
    <f:facet name="input">
        <p:inputText value="#{yourBean.text}" />
    </f:facet>
</p:inplace>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top