0

Some element to wrap included code?

asked 2016-04-26 14:24:29 +0800

Jovkub gravatar image Jovkub
1 1

I'd like to define some "constants" - custom-attributes for my resources (storing URL of icons etc.). I'm planning to store it in separate .zul file that I'm going to include on the start of index.zul. As ZUL is regular XML file it shall have only one root element that will wrapp all the custom-attributes. I could use proprietary "invisible" div, but somehow I dont like such workaround solution. Is there some better ZUL element to use instead?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-27 06:38:26 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Jovkub,

Why not store the constants in a class, file, or even a database table? Sounds much easier and you will not add more components to your page.

Best Regards,

Darksu

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: 2016-04-26 14:24:29 +0800

Seen: 14 times

Last updated: Apr 27 '16

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