On Thu, 20 Dec 2012 09:32:51 -0200, Athneria, Mahendra <[email protected]> wrote:

Hi,

Hi!

Can someone explain me the difference between Tapestry “Element” and “Component”?

They're completely different. Elements in Tapestry are exactly the same as HTML and XML elements. Components usually generate HTML or XML elements.


I got this from the tapestry site(http://tapestry.apache.org/component-templates.html)

“There are a certain number of Tapestry elements, listed below, that act as template directives;

<t:body>, <t:block>, etc are Tapestry elements (tags). They define portions of template. Each one of these Tapestry elements has its own use and meaning. They don't generate elements: instead, just have a body, which is consisted of elements.

beyond that, any element in the Tapestry namespace will be a Tapestry component.”

This means that every <t:xxx> element which isn't one of the listed Tapestry special elements is treated like a component instance declaration. <t:grid> is the same as <table t:type="Grid">, i.e., the declaration of one instance of the Grid component.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to