Hey Chill, this page referes how to import and use static method / attribut : https://www.zkoss.org/wiki/ZUMLReference/ZUML/ProcessingInstructions/import#Import_Classes
WilliamB ( 2016-06-20 07:36:29 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I thought I read that ZK8 would handle enum usage in zul file ? Either through static import or something.
Can anyone enlight me ?
If i wanted to do something like
${vm.myValue eq MyEnum.VALUE1}
Also I'm curious which version of EL does ZK8 uses ?
hey William,
I have tested it in a fiddle
The fault we get is pretty strange, looks like Fiddle created 2 different classes while an enum should be the best singleton what there is.
So next, I wanted to use the normal equal and came to this fiddle.
Witch also don't work.
So the only thing what works, are constants in a normal java class, not an interface. Maybe you could test the first method in a real IDE, but ....
Greetz chill.
Hey Chill, this page referes how to import and use static method / attribut : https://www.zkoss.org/wiki/ZUMLReference/ZUML/ProcessingInstructions/import#Import_Classes
WilliamB ( 2016-06-20 07:36:29 +0800 )editAsked: 2016-06-14 10:07:10 +0800
Seen: 30 times
Last updated: Jun 16 '16
Moving to ZK8: Failed to parse the expression
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
William, it's EL3. I'll test enum tomorrow, onstants have to be in a class, not interface.
chillworld ( 2016-06-15 16:37:21 +0800 )edit