<h:outputText value="" escape="false" />

Matthias Klein wrote:
I should have added some more info:

The code that creates the string with the link looks like:
this.link = "<a href=\"";
this.location += "/" + filename + "\" target=\"_blank\">" + param + "</a>";

It is embedded in the JSP page with

<h:outputText value="#{ContentBackingBean.link}" />

(I tried with verbatim, doesn't change a thing)

When I then call that page I get

&lt;a href=&quot;c:/JavaCode/files/10.html&quot;
target=&quot;_blank&quot;&gt;10.html&lt;/a&gt;

So the JSF renderer seems to insist to always translate the special
characters of HTML (like < into &lt; and so on)

How do I switch that off?

Or is there a better way to embed links like that into JSF pages?



Am Mo, 22.05.2006, 20:33, schrieb Matthias Klein:
I need to somehow embed a link such as <a href="...">ggg</a> in a JSF
page. I tried outputText with and without verbatim and I tried the
tomahawk html tag component. Nothing works. How does one do such thing?


Btw. the link itself is contructed in a backing bean as string so I can't
 hard-code the link in the page.

thanks









Reply via email to