1 Reply Latest reply on Feb 12, 2008 4:26 AM by Ilya Shaikovsky

    rich:datascroller with h:outputText (Text from TinyMCE)

    alex rozario Newbie

      Hi all,

      In my project i am using TinyMCE Text editor to post comments. Its working good.
      After posting the comments the database saves the comments like < p>test < strong>text< /strong>< /p> which is understandable.

      And my next task is to show the comments in rich:dataTable row by row.
      i am showing like...

      date author comment
      ....row1...
      ....row2...
      And i am using rich:datascroller to show more than 10 comments.

      i am showing comments as
      <h:outputText value="#{bean.comment}" />

      its shows with tags like, < p>test < strong>text< /strong>< /p>

      So i am using escape="false" in outputText to show without tags
      <h:outputText escape="false" value="#{bean.comment}" />

      it shows like test text.

      Well...

      Here comes my issue..

      If i use escape="false" the datascroller is not working...
      If i remove escape="false" the datscroller works but comments showing up with tags.


      How to fix this.

      I want to show comments with out tags and i want my datascrollers too work fine..

      Any help is appreciated..

      Thanks and regards,
      Alex.