myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Düppe <mailing-li...@dueppe.com>
Subject Accessing constants in EL expressions
Date Wed, 07 Feb 2007 10:38:31 GMT
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