b30-1893247.zul
来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 54 行
ZUL
54 行
<?xml version="1.0" encoding="UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<window id="mainwin">
<html><![CDATA[
<p>You should see three rows with column titled "row 1", "row 2", and "row 3" and each with same
contents of "grid content". If you did not see them, it is a bug!</p>
]]></html>
<zscript><![CDATA[
public class Person {
private String _name;
public Person(String name) {
super();
_name = name;
}
public String getName() {
return _name;
}
public void setName(String name) {
_name = name;
}
}
List persons = new ArrayList();
persons.add(new Person("row 1"));
persons.add(new Person("row 2"));
persons.add(new Person("row 3"));
]]>
</zscript>
<grid model="@{persons}">
<columns>
<column label="Name"/>
</columns>
<rows>
<row self="@{each=q}">
<groupbox>
<grid>
<columns>
<column id="x" label="@{q.name}"/>
</columns>
<rows>
<row><label value="grid content"/></row>
</rows>
</grid>
</groupbox>
</row>
</rows>
</grid>
</window>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?