Em Mon, 09 Feb 2009 17:42:23 -0300, Howard Lewis Ship <[email protected]> escreveu:

This is to get ready to
bring back a version of $content$ and $remove$ (from T4),

I implemented something very similar to $content$ and $remove$ implementing two components: crud/Remove (renders absolutely nothing, just like $remove$ [1] and crud/JustBody (renders only its body, not its element) [2]. A template using them to provide complete previewability can be found at [3]. That's one very nice Tapestry feature: implementing a very simple component you accomplish something that need special treatment in other frameworks (like Tapetry 4, for example).

[1] http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/java/br/com/arsmachina/tapestrycrud/components/Remove.java?revision=379&view=markup

[2] http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/java/br/com/arsmachina/tapestrycrud/components/JustBody.java?revision=379&view=markup and

[3] http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/example/tags/1.0/src/main/webapp/user/EditUser.tml?revision=395&view=markup and http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/resources/br/com/arsmachina/tapestrycrud/components/JustBody.tml?revision=379&view=markup.

plus future
ideas (allow a subclass template to override only portions of the
superclass template).

Couldn't this be accomplished just using regular block parameters? AFAIK, this can be true for components, but not for pages. Am I right?

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to