Created
May 6, 2015 05:01
-
-
Save jumperchen/d4494880da1790d7f5c0 to your computer and use it in GitHub Desktop.
ZK 8-RC Performance Testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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