You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Daniel Anguita O." <ar...@gmail.com> on 2009/06/13 00:52:01 UTC

Help with tapestry5 default convertion of html entities

Hey,

I'm trying to insert a html link to my template from the class.
For example, i have my page Dummy.java anda template Dummy.tml.

on Dummy.java i have

public String getDummyHtmlLink(){
    return "<a href=\"http://www.dummyhtml.fake\">Dummy Html</a>";
}

and anywhere on my Dummy.tml i have

${dummyHtmlLink}

The problem is that tapestry display literally my html link, converting 
the characters to html entities, so what i see in the page y actually 
the html code, and not the link.

Is there any way to deal with this?

Thanks
- Daniel

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


Re: Help with tapestry5 default convertion of html entities

Posted by Howard Lewis Ship <hl...@gmail.com>.
Or:

<a href="${dummyHref}"> ... </a>

and

public String getDummyHref() { return "http://www.dummyhtml.fake"; }

On Sat, Jun 13, 2009 at 10:12 AM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> Use the OutputRaw component (
> http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
> )
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

Re: Help with tapestry5 default convertion of html entities

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Use the OutputRaw component  
(http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html)

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

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