Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display string in html format on jsf page [closed]

I m using jsf2.0. And i m making one email application, I m calling web service to read the content of the file, and i m using SAX parser to extract the content from the to read the file. And i m storing that content in string variable and set it in setter method. And displaying it in outputLabel. Now, problem is when the content is displayed in jsf page at that time it is not displaying in proper format. it's displayed in one line. But when i see the view source of page at that time in view source it's displayed in proper format. So,what should be the solution. Please reply me. Thanks in advance.

like image 632
Lumia Avatar asked Dec 10 '22 00:12

Lumia


1 Answers

Check out if h:outputText's escape flag set to false can help you.

escape: This attribute sets a boolean flag value that determines if sensitive HTML and XML characters should be escaped in the output generated by the component. It's default value is "true".

(Description from here)

like image 63
Piotr Sobczyk Avatar answered Dec 30 '22 14:12

Piotr Sobczyk