Em Mon, 22 Jun 2009 17:18:28 -0300, Captain Cid <captain_...@indiatimes.com> escreveu:

Hi,

Hi!

I am new to tapestry

Welcome!

i have 2 questions

firstly if i want to render some html from a function in page...how will i
do...
suppose template has ${show}...
and i define
public String getShow() {
return "<div>Hello</div>";
}

it changes < to lt; gt; etc

Use the OutputRaw component and leave your method as is.

secondly i have a component Info with a variable say "private String
description"
and function
public String getDescription() {
                return description;
}

how can i use it in template ??
${component:Info.description} doesnt work !

Please post the error message and the stack trace, because sayint it doesn't work is not enough information for us to thelp you.

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

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

Reply via email to