cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: how to display html?
Date Fri, 22 Oct 2004 06:07:58 GMT
Wild guess here (never done it myself):

Could your editBean.note_with_href return a DOMFragment or DomNode? I 
think the latest Cocoon in SVN might have code to handle this properly 
in JXTemplate.

Regards, Upayavira

Paul Joseph wrote:

>Hi,
>
>i have a requirement that the user should be able to
>enter a href in a text area ex:
><a
>href="http://www.yahoo.com">http://www.yahoo.com</a>
>
>Then in a different form, that is read only, this href
>should display as a link that can be clicked on.
>
>I tried to do this using the following:
>
><snip>
>
><TD>${editBean.note_with_href}</TD>
>
></snip>
>
> but what I get in the resulting table cell is the
>same thing i.e. 
>
><a
>href="http://www.yahoo.com">http://www.yahoo.com</a>
>
>i.e. the "<" and ">" have been escape to be &lt; and
>&gt;.  A bean.toString() method indicates that the
>values in the bean are unescaped.  The values in the
>database also appear to be unescaped.
>
>Who is doing the escaping and how can I prevent it
>from happening so that I see a clikcable link?
>
>My sitemap is pretty basic - as follows:
>
><map:match pattern="display-only-pipeline">
>  <map:generate type="jx" src="display_template.xml"/>
>       <map:serialize type="html"/>
></map:match>
>
>thanks!
>Paul
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message