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


Reply via email to