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: "role" attribute not taken into account?
Date Thu, 20 Mar 2008 10:25:30 GMT
2008/3/20, Daniel Baldes <db@open.ch>:
> 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."

Can you open a JIRA issue for this, and, if you can, attach a patch?


View raw message