0

Is it possible to reference a Java constant in a ZUL file EL script?

asked 2012-12-14 21:05:31 +0800

davout gravatar image davout
1435 3 18

updated 2012-12-14 21:06:05 +0800

Is it possible to use a Java constant inside a ZUL file EL script? Like...

Here's the Java constant...


public interface RoleNames {
   public final static String ROLE_ADMIN = "ADMIN";
    ...


... and the ZUL file...

   <row visible="${vm.hasRights(ROLE_ADMIN)}">

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-12-14 21:30:18 +0800

davout gravatar image davout
1435 3 18

Found it...

<?import com.zk.fgfgf ?>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-12-14 21:05:31 +0800

Seen: 51 times

Last updated: Dec 14 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More