On Fri, 13 Jan 2012 06:14:52 -0200, Kalle Korhonen
<[email protected]> wrote:
On Thu, Jan 12, 2012 at 11:45 PM, Paul Stanton <[email protected]>
wrote:
I have two components who's tml is identical.
Is it possible to have tapestry load the tml from one location?
Yes, use inheritance: http://tapestry.apache.org/component-templates.html
In other words, create a superclass for both in the base package, give it
the template you want shared, then create the components are subclasses.
If two components share the same template, I'd guess they'd share some
code too, so probably the superclass won't be empty.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]