2009/8/11 Musachy Barroso <musa...@gmail.com>: > Like Eric said, one of the things that I dislike about the current > tags is the inheritance of the attributes. Out tags for the tld > generation have ways to hack around that problem, but it still smells.
I don't know how it is OT, but maybe it might interest you. At Tiles I realized a pure Java "template" layer, mad only of "start", "end" and "execute" methods (with different parameters) that represent, respectively, the start, the end or the execution of a tag (the execution usually means a tag with no body). Around that I created three "tag" layers, for JSP, FreeMarker and Velocity. This was possible essentially because in Tiles there is an abstraction of the request (TilesRequestContext) that can represent a servlet request, a JSP's PageContext, a FreeMarker Environment, etc. My idea is that, in a near future, this mechanism can be extended to tag generation, starting from the template, for different template engines. Reference: http://tiles.apache.org/framework/tutorial/extension/template.html Code: http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-template/ http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-jsp/ http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-velocity/ http://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-freemarker/ Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org