tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baldes ...@open.ch>
Subject Re: "role" attribute not taken into account?
Date Thu, 20 Mar 2008 10:21:15 GMT
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.
> Antonio


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


View raw message