That's basically how I've done it in a production app. I wrote an
"isAvailableForRole" method and created a Role enumeration, so the
HTML looks like:
<div jwcid="@Conditional" condition="isAvailableForRole(@[EMAIL PROTECTED])">
...
</div>
I've started thinking how to cut this over to ACEGI as well (and how
I could do this in T4...)
...Richard
On Nov 26, 2005, at 18:28, Patrick Casey wrote:
<span jwcid="@Conditional" condition="currentUser.Role == 'foo'">
Foo
</span>
Might work for you.
-----Original Message-----
From: radone [mailto:[EMAIL PROTECTED]
Sent: Friday, November 25, 2005 9:13 AM
To: [email protected]
Subject: detect user roles (somthing like <html:logic roles="" >)
Hi,
could anyone help me how to detect roles of user in Tapestry?
Something like (struts)
<html:logic roles="admin"> Amin's text </html:logic>
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: tapestry-user-
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]