This content has been marked as final.
Show 2 replies
-
1. Re: How to Display a XML string in richfaces?
healeyb Dec 6, 2011 2:00 AM (in response to its_me)Try style="white-space: pre" or style="white-space: pre-wrap" (possibly in conjunction with what
you are already specifying), and use h:outputText escape="false":
<h:panelGroup layout="block">
<h:outputText escape="false" style="white-space: pre" value="..."/>
</h:panelGroup>
If this doesn't work try wrapping the outputText in <pre></pre> tags. Using escape="false" introduces
the risk of cross site scripting attacks if the content being displayed is user entered, so be aware.
Regards,
Brendan.
-
2. Re: How to Display a XML string in richfaces?
its_me Dec 8, 2011 2:45 AM (in response to healeyb)Hello Brendan,
We tried your solution, but still the string gets displayed without any spaces/return/tabs. Thus it doesnt look like a XML still
Regards,
Nid..............