[ http://issues.apache.org/jira/browse/VELOCITY-248?page=all ] Nathan Bubna closed VELOCITY-248: ---------------------------------
Assign To: (was: Velocity-Dev List) this was addressed before the 1.1 release > Tiles > ----- > > Key: VELOCITY-248 > URL: http://issues.apache.org/jira/browse/VELOCITY-248 > Project: Velocity > Type: Improvement > Components: Tools > Versions: 1.4 > Environment: Operating System: All > Platform: All > Reporter: Jesus Marin > Priority: Minor > > I see that using tiles definitions like this: > <definition name ".def.mine" path="/app/base.vm"> > <put name="title" value="TITLE"/> > <put name="header" value="/app/header.vm"/> > </definition> > > I can use $tiles.importAttributes() and $tiles in general inside "base.vm" > BUT > not inside "header.vm". Besides scope variables for "base.vm" are local and > are > not seen by "header.vm". So if I define #set ($subtitle = > $tiles.getAttribute("$title") ) inside "base.vm", I can use $subtitle > perfectly > inside it BUT it is not seen by "header.vm" as you use $subtitle for it or > even > $tiles.getAttribute("$title"). > > Is there a way to populate variables for the whole definition? > > This example is translated from a similar JSP tile page and works perfectly. > All variables from <definition> are seen by all pages inside it. > Regards -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]