i used 

@Component(parameters =
{"id=123" })
@Property
private productInfo productInfo;

and ${productInfo.description} worked. Thnx 

ya but i guess better would be to define function in page class to retrieve
information from component !


Thiago H. de Paula Figueiredo wrote:
> 
> Em Mon, 22 Jun 2009 18:13:13 -0300, Captain Cid  
> <captain_...@indiatimes.com> escreveu:
> 
>>> 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.
> 
> You cannot access component properties directly in templates. You can  
> accomplish the same by
> 
> @InjectComponent
> @Property
> private ProductInfo productInfo
> 
> And use ${productInfo.description} in the template. By the way, is very  
> unusual to use component properties in templates.
> 
> -- 
> 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-tp24154619p24156680.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