---------- Forwarded message ---------- From: Stevo Slavić <[email protected]> Date: Tue, Mar 8, 2011 at 4:15 PM Subject: Re: Extending generic tiles 2 template To: Antonio Petrelli <[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? >> 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. > > Antonio >
