-
Bug
-
Resolution: Fixed
-
Normal
-
8.6.3
-
Windows 10, Oracle JDK 1.8.0_201, Tomcat 8.0.47, ZK 8.6.3
-
None
When using an array of classes as grid or listbox model then the exception
No public static field named [xxx] was found on class [yyy]
is thrown. The example below used to work with ZK 7.
import java.util.Arrays; public class TestViewModel { private final Class<?> classes[] = new Class<?>[] { String.class, Integer.class }; public Class<?>[] getClasses() { return Arrays.copyOf(classes, classes.length); } }
<listbox apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('TestViewModel')" model="@load(vm.classes)"> <template name="model"> <listitem label="@load(each.name)" /> </template> </listbox>
- relates to
-
ZK-3815 zscript causes MethodNotFoundException when calling a static method in EL
- Closed