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.

HTH
Antonio

Hi,

thanks for the fast reply.

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."

Daniel

Reply via email to