You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/01/24 12:58:47 UTC

DO NOT REPLY [Bug 26394] New: - Tiles

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26394>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26394

Tiles

           Summary: Tiles
           Product: Velocity
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Tools
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: jesus@aplsoftware.com


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

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org