-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello guys,
Consider a script like this : child.zul :
<zk>
<zscript>
<![CDATA[
String[] userName = { "Tony", "Ryan", "Jumper", "Wing", "Sam" };
ListModelList model = new ListModelList(userName);
]]></zscript>
<selectbox model="${model}" onSelect='alert(model.get(event.getData()));'>
<template name="model">
Name is ${each}
</template>
</selectbox>
</zk>
Taken from the Selectbox reference page
Everything works fine if you access the ZUL directly.
However, when you includes this file in another : parent.zul :
<window title="include demo" border="normal" width="300px">
Hello, World!
<include src="child.zul" />
</window>
You get something like this instead of the values : ReferenceBindingImpl@6e1315779;Component ReferenceBindingImpl@6e1315779;Component ReferenceBindingImpl@6e1315779;Component ReferenceBindingImpl@6e1315779;Component ReferenceBindingImpl@6e1315779;Component
Tested with ZK 6.5.1.1.
Am I doing something wrong ? Is there a bug in this ?
Thank you in advance,
Clément
This is not any bug see ZK Sample Include Example its working fine while i am using your code you are doing something wrong.Please share more Information.
Asked: 2013-03-12 16:47:47 +0800
Seen: 25 times
Last updated: Mar 12 '13