aspose file tools
The moose likes JSF and the fly likes Displaying conents from RichEditor to JSF Form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Displaying conents from RichEditor to JSF Form" Watch "Displaying conents from RichEditor to JSF Form" New topic
Author

Displaying conents from RichEditor to JSF Form

shree lk
Greenhorn

Joined: Mar 16, 2011
Posts: 14

Hi all
I am working with JSF. I have used RichFaces's 'RichEditor'. I am storing contents from this editor into a bean and displaying into a JSF form. But it shows HTML tags on the JSF form. For that I have used JSoup HTML Parser. But it completely converts the written content of the rich editor to simple text, removing all formatting like bold, buttons used, newline, etc. I need to display as it is in the jSF form as the editor.


Please Help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

If what you mean is that you're attempting to display formatted text using something like an <h:outputText> control, you need to disable the HTML escape mechanism. It's an attribute on the outputText tag.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Displaying conents from RichEditor to JSF Form
 
Similar Threads
Highlighting a particular row of JSF Data Table
XML -JSP transformation
JSF 2.0 + Primefaces Richtext Editor
Questions about JavaServer Face
To list rich-editor conents one by one, Just like this forum