2008/3/20, Daniel Baldes <[EMAIL PROTECTED]>: > Antonio Petrelli wrote: > > The "role" property is evaluated only when you use <tiles:insertAttribute>. > > This means that in the list, the element specified with <add-attribute> is > > always put. > > In your case, probably you have to check the role manually (by checking the > > user's role against the iterated element, that is of class "Attribute"). Or > > you have to use <tiles:insetAttribute> with the "value" attribute evaluated > > with the iterated item in the list. > > > > Maybe this should be clarified/corrected in the documentation. The DTD > doc for "add-attribute" says: "The attribute is inserted only if the > role name is allowed."
+1 Can you open a JIRA issue for this, and, if you can, attach a patch? https://issues.apache.org/struts/browse/TILES Thanks Antonio
