📄 b30-1813271.zul
字号:
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<zk xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk">
<html><![CDATA[
Test xhtml component inside grid with annotation databinding (this bug generate duplicate ids)<br/>
1. You should see 4 hyperlinks below inside a grid and a listbox.<br/>
2. If you can see the 4 hyperlinks there, it is correct.
]]></html>
<zscript>
public class Link {
private String _href;
public Link(String href) {
setLink(href);
}
public String getLink() {
return _href;
}
public void setLink(String href) {
_href = href;
}
}
List links = new ArrayList(3);
links.add(new Link("http://www.zkoss.org"));
links.add(new Link("http://jp.zkoss.org"));
links.add(new Link("http://zh.zkoss.org"));
links.add(new Link("http://www.potix.com"));
</zscript>
<groupbox>
<caption label="grid"/>
<grid model="@{links}">
<rows>
<row each="@{link1}">
<h:a href="@{link1.link}"><label value="@{link1.link}"/></h:a>
</row>
</rows>
</grid>
</groupbox>
<groupbox>
<caption label="listbox"/>
<listbox model="@{links}">
<listitem each="@{link2}">
<listcell><h:a href="@{link2.link}"><label value="@{link2.link}"/></h:a></listcell>
</listitem>
</listbox>
</groupbox>
</zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -