2011/3/8 Stevo Slavić <[email protected]>: > On Tue, Mar 8, 2011 at 3:59 PM, Antonio Petrelli > <[email protected]> wrote: >> 2011/3/8 Stevo Slavić <[email protected]>: >>> Hello Apache Tiles users, >>> >>> I have a generic Tile definition >>> >>> <definition name="*/*" extends="standard"> >>> <put-attribute name="pageTitle" type="string" >>> value="{1}.{2}.title" >>> cascade="true"/> >>> <put-attribute name="content" >>> value="/WEB-INF/jsp/{1}/{2}.jsp" /> >>> </definition> >>> >>> This one works fine for 90% of my Tiles 2 views (using Tiles 2.2.2 >>> from Spring 3). For some views I need specific view preparer or to >>> redifine some attribute. Is there a way to extend such generic-named >>> Tile definition? >> >> Define a more specific definition *above* this one. Definitions with >> wildcards are evaluated in order of presence in the file. >> > > I understand, but how can one express that a tile definition extends > one with wildcards in name?
IIRC you can use placeholders in "extends" attribute. > >>> Also, can anyone please explain, or point me to some documentation, >>> what is the purpose of id attribute of a tile definition? >> >> Sorry? What id attribute? > > Latest DTD that can be found at > http://tiles.apache.org/dtds/tiles-config_2_1.dtd defines id as > attribute of definition element. Eclipse IDE offers it for > auto-completion. Ah, that id. It is a standard XML attribute, nothing more, and nothing useful for Tiles :-) Antonio
