tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baldes ...@open.ch>
Subject "role" attribute not taken into account?
Date Thu, 20 Mar 2008 09:51:10 GMT
Hi,

I got a definition in tiles.xml like this:

   <definition name="menu" template="menu.jsp"  >
      <put-list-attribute name="items">
       <add-attribute value="a" role="one-role" />
       <add-attribute value="b" role="second-role" />
       <add-attribute value="c" role="third-role" />
      </put-list-attribute>
   </definition>

In menu.jsp I do <tiles:importAttribute /> and then iterate over $items 
in a c:forEach. I always get all attributes, regardless of what roles 
the current user is in.

I use tiles 2.0.5 (I found a bug report which described this problem, 
but it is marked as fixed for 2.0.5: 
https://issues.apache.org/struts/browse/TILES-185 ).

Is this a bug or am I doing something wrong?

(tiles 2.0.5, struts 2.0.11 with tiles-plugin, tomcat 6.0.16)

Thanks in advance,

Daniel


Mime
View raw message