hi,

T5 offers you 3 choices to add components:

1) you can use the t:id attribute (as T4s jwcid)

template:
<a t:id="link">...</a>

class:
@Component
private ActionLik link;

2) invisible instrumentation
<a t:type="actionlink">...</a>

3) component elements
<t:actionlink>...</t:actionlink>

the tutorials use invisible instrumentation and/or component elements 
because
they are easier to understand as you dont have to show the java page 
class.

see also http://tapestry.apache.org/tapestry5/guide/templates.html

g,
kris




Ivano Luberti <lube...@archicoop.it> 
04.03.2009 15:18
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
Tapestry users <users@tapestry.apache.org>
Kopie

Thema
templates changes from tapestry 4.1 to tapestry 5







Hello I'm new to the mailing list but I have been using Tapestry 4.1
since the end of  last year.
I started recently looking to Tapestry 5 and I've been struck by the
changes made in the html templates.

I had chosen Tapestry because it was component based and because there
was no need to use special syntax in the HTML.
Now it seems to me that the last one is gone.
What I really liked of the 4.1 templates was the fact that, putting all
the presentation logic in the page files, a web graphic designer could
work on the templates without knowing a thing of the underlying system,
even after I have dynamized the content inserting the jwcid attribute in
the relevant HTML tags.

For what I see in the Tapestry 5 tutorial , now I have to use special
tags , like in jsp or any other template engine powered presentation 
layer.

Can someone explain me wether I'm wrong or not ? I really hope I am.




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


Reply via email to