2 Replies Latest reply on Dec 8, 2011 2:45 AM by Its Me

    How to Display a XML string in richfaces?

    Its Me Newbie

      Hello All,


      We have an application which has a formatted XML string saved in the database. When we display it on screen, the spaces and the tabs are getting cut and we see the string as a continuous string. This problem occurs only while displaying on screen. The download works fine. The following is the command used for display:


      <h:outputText value="#{myBean.docContent}"

                                                        styleClass="c41f4" style="word-wrap: break-word;display: block;"  />


      We tried h:outputFormat too. It still doesnt help.


      Any help is appreciated.


      Thanks and Regards,