On Tue, 30 Mar 2010 09:08:19 -0300, Kristian Marinkovic <kristian.marinko...@porsche.co.at> wrote:

so you want to generate a link in a grid and dependending
on a parameter have a mixin attached.
you can solve it by using a delegate that is directed to a block
(or component) that  in one case contains a simple eventlink and
in the other case contains a eventlink with the attached mixin

Or passing some parameter to the mixin controlling if it will really do something or not. Instead of dynamically applying a mixin or not, you always apply the mixin but not always it will do something.

that's one of the drawbacks you have, when following the static
structure, dynamic behaviour paradigm. you always have to
have all posibilities defined in advance. and from my point of
view it's not always that bad.

You're right. You just need to think with the static structure in mind. There are solutions for almost any scenario, they just aren't always implemented the same way as in dynamic structure frameworks.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to