-
Bug
-
Resolution: Fixed
-
Normal
-
6.5.5
-
None
same as B30-1813271.zul (see also B30-1775014)
<?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>