myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Bischoff <jbisch...@klkurz.com>
Subject Re: Accessing constants in EL expressions
Date Wed, 07 Feb 2007 15:15:15 GMT
Known Workaround: Create a getter method for the Constant.

Ingo Düppe wrote:
> Hi,
> 
> how can I access a constant integer value within an el-statement.
> 
> I like to do something like:
> <s:acl domainObject="#{faculty}" hasPermission="#{ACL.GRANT + ACL.UPDATE}">
>   ...
> </s:acl>
> 
> And ACL is defined as:
> 
> public class ACL ... {
>   public static final Integer GRANT = 1;
>   public static final Integer CREATE = 2;
>   public static final Integer UPDATE = 4;
>   ...
> }
> 
> Any suggestions would be wonderful :-)
> 
> Regards
> Ingo
> 
> 
> 
> 
> 



Mime
View raw message