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: how to create menues with tiles2?
Date Sat, 28 Jun 2008 18:51:15 GMT
2008/6/27 xbranko <xbranko@netscape.net>:
>  <tiles:importAttribute name="menu.Attributes"/>

Rick is correct, there is a problem with dots in "menu.Attributes",
because, without the "toName" attribute, it will be imported in the
"menu.Attributes" name under page scope.
So, either use a "toName" attribute, e.g.:
<tiles:importAttribute name="menu.Attributes" toName="menuAttributes"/>
<c:forEach var="item" items="${menuAttributes}">

Or change its use in <c:forEach>, e.g.:
<c:forEach var="item" items="${pageScope['menu.Attributes']}">


View raw message