On Tue, 24 May 2011 19:19:39 -0300, Lenny Primak <[email protected]> wrote:

For Q1 I would use class transformation technique to add a method to each component that Inserts the CSRF token. i.e. InsertCSRFToken() and call that from the mixin. That way there are no if statements and it's easier just to implement this globally.

I would have a different mixin for each different component type, each one having an afterRender() method, and have a class transformation applying these mixins to components accordingly.

--
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]

Reply via email to