Domanda

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.

È stato utile?

Soluzione

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>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top