Thanks, that component produced the desired result thus: <t:outputraw 
value="fmtConvText"/>

  ----- Original Message ----- 
  From: Muhammad Gelbana 
  To: Tapestry users 
  Sent: Saturday, December 29, 2012 1:15 PM
  Subject: Re: markup doesn't render


  Use this component
  
http://tapestry.apache.org/5.3.6/apidocs/org/apache/tapestry5/corelib/components/OutputRaw.html

  On Sat, Dec 29, 2012 at 2:52 PM, John <j...@quivinco.com> wrote:

  > I'm finding that the output of ${fmtConvText} does not render markup
  > properly when it contains html tags. Instead the browser renders the
  > content literally.
  >
  > For example if fmtConvText="a b c<span class="carriageRtn"> &para;
  > </span>1 2 3" that is exactly what the browser renders, the span tag and
  > &para; isn't interpretted.
  >
  > Also if I remove the enclosing span tag the ${fmtConvText} content gets
  > enclosed inside a pair of " characters.
  >
  > Anyone know what is going on? Is this because content is provided through
  > a zone and thus JS and the document model? How to fix this?
  >
  > John
  >
  > <t:zone t:id="conversationZone" id="conversationZone">
  >   <div style="height:300px;width:870px;border:1px solid
  > #ccc;overflow:auto;">
  >    <t:loop source="conversation" value="conversationBean">
  >     <p t:type="if" t:test="incoming" class="cssIncoming" title="Incoming
  > message ${toolTip}">
  >      <span class="conv-date">[${cbFormattedMsgTime}]</span>
  >      <span class="conv-user">&lt;${conversationBean.fromUser}&gt;</span>
  >      <span>${fmtConvText}</span>
  >     </p>

Reply via email to