Thiago H. de Paula Figueiredo wrote:
> 
> 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.
> ^^^^^^
> 
> Basically i want to know...how can i access component variable or
> component function from template file
> 
> Error shown was :
> 
> An unexpected application exception has occurred.
> 
> Render queue error in Expansion[ComponentResources[expansion
> Info.Description]]: Component showPage does not contain an embedded
> component with id 'productInfo.Description'. Available components:
> outputraw, outputraw_0, Info.
> 
> 
> -- 
> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Return-HTML-tp24154619p24155556.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to