Skip to content

Instantly share code, notes, and snippets.

@jumperchen
Created May 6, 2015 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jumperchen/d4494880da1790d7f5c0 to your computer and use it in GitHub Desktop.
Save jumperchen/d4494880da1790d7f5c0 to your computer and use it in GitHub Desktop.
ZK 8-RC Performance Testing
package org.zkoss.test;
import java.util.Collections;
import java.util.List;
public class ForEachVM {
private List<Integer> array = Collections.nCopies(30, 30);
public void setArray(List<Integer> array) {}
public List<Integer> getArray() {
return array;
}
}
<zk xmlns:x="xhtml">
<div id="bind" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('org.zkoss.test.ForEachVM')">
<div style="display:none" id="host">
<div children="@load(vm.array)">
<template name="children">
<div children="@load(vm.array)">
<template name="children">
Test Label
</template>
</div>
</template>
</div>
</div>
</div>
</zk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment