Evangelo Karagiannis wrote:
> Hello,
> Just a quick question. Is there any way in which Tapestry's Insert tag 
> can be used to embed HTML tags as can be done in Servlets? I tried to do 
> it by printing out "Hello World" in bold and italic, but instead i got 
> "<b><i>Hello World</i></b>".
> 
> cheers,
> evangelo
> 
> PS: thanks to everyone for answering my previous question on Spindle.

Two ways to do this:

- you can use the 'raw' parameter of the Insert component with a value 
of Boolean.TRUE, this stops the escaping of special HTML characters.

- a better way (IMHO) is to use the 'class' parameter of the Insert 
component to give your text a CSS class.

By the way, the Javadoc is the definitive reference for Tapestry 
components ($YOUR_TAPESTRY_DIR/doc/api/index.html)

Hope that helps.

Tom


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to