2 Replies Latest reply on Apr 25, 2009 2:23 AM by Nick Belaevski

    HTML Tags Not Rendered inside a4j:repeat

    Dave Everson Newbie

      Hello,

      I have a loop in a Facelets/RichFaces 3.3.0 page that is to output announcements. The body of the announcement (#{item.body}) contains HTML markup. However, when this is rendered using <a4j:repeat> the HTML tags are not rendered correctly. (i.e. is displayed rather than bolded text).

      I even tried wrapping #{item.body} with the Facelets verbatim tag. This is not work. I also tried <c:forEach>

      If I display a single item outside of the <a4j:repeat> loop, the HTML is rendered correctly. It appears that it only does not work within a loop.

      Any ideas on what might be causing this or how to solve? Thanks!



       <a4j:repeat value="#{announcementTest.announcements}" var="item">
      
       <rich:panel style="width:400px;">
       <f:facet name="header">
       #{item.subject}
       </f:facet>
      
       #{item.body}
      
       </rich:panel>
       </a4j:repeat>