0

How can i load a constant in .zul

asked 2013-02-06 15:58:35 +0800

pmmendescsw gravatar image pmmendescsw
8 1

updated 2013-02-06 16:00:17 +0800

I've a constant like :

public static final String FOO_BAR = "foo bar";

How can I access it in zul?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-06 17:26:58 +0800

rdgrimes gravatar image rdgrimes
735 7

It's pretty simple. See my ZK Fiddle example here.

The trick is that you must provide a non-static getter for the static property. If you declare the method as static as well, BindComposer doesn't seem to like it.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2013-02-06 15:58:35 +0800

Seen: 40 times

Last updated: Feb 06 '13

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