tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Correct visibility for definition attribute?
Date Fri, 01 Feb 2008 07:55:32 GMT
2008/1/31, Kyo Suayan <ksuayan_lists@yahoo.com>:
> Q: Is this the expected behaviour?
> Given a definition like this:
> <definition name="main.def"
> template="/WEB-INF/layout.jsp">
> <put-attribute name="description" value="Page
> description here"/>
> <put-attribute name="title" value="Document Page
> Title"/>
> <put-attribute name="banner"
> value="/WEB-INF/banner.jsp"/>
> </definition>
> For some reason, I am only able to access the values
> of the attributes I set from the layout template (i.e.
> layout.jsp below).
> If I use insertAttribute tile tags inside banner.jsp,
> the values come out as null.
> I understand this must be a very fundamental question
> but I appreciate your patience. What i'd like to be
> able to do is pull the "description" and "title"
> attributes using insertAttribute tags from within
> banner.jsp.

Yes, this is the expected behaviour. If you need to put an attribute inside
your banner.jsp page, create a new definition and put it instead of "
banner.jsp" itself inside "banner" attribute of "main.def".
Anyway I am working (for Tiles 2.1.x) at a solution to provide "cascaded"


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message