Maybe use a <t:if> and move the role related code to your java page?

Von meinem iPhone gesendet

> Am 29.06.2016 um 08:24 schrieb Matthew Bush 
> <matthew.b...@jetinteractive.com.au>:
> 
> 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
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to