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.
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)
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