Just specify the prop: binding prefix explicitly, i.e.: role="prop:dynamicRoles"
This parameter just uses literal: binding prefix by default. Also make sure you read this: http://tapestry.apache.org/component-parameters.html#ComponentParameters-BindingExpressions On Wednesday, June 29, 2016, Matthew Bush < matthew.b...@jetinteractive.com.au> wrote: > I want to dynamically set required roles at runtime dynamically rather > than have them statically coded. Is this possible? > > Taken from the tynamo-security page ( > http://www.tynamo.org/tapestry-security+guide/ < > http://www.tynamo.org/tapestry-security+guide/>) > > <t:security.hasRole role="admin"> > <t:actionlink t:id="delete">delete user</t:actionlink> > </t:security.hasRole> > What I would like to be able to do is set the required role or role list > based on a bound parameter, is that possible? > > Example syntax - > > <t:security.hasRole role=“${requiredRoles}"> > <t:actionlink t:id="delete">delete user</t:actionlink> > </t:security.hasRole> > > > Cheers, > Matthew Bush > > > -- Dmitry Gusev AnjLab Team http://anjlab.com