1

ZK Selectbox and include problem

asked 2013-03-12 16:47:47 +0800

Darkstryder gravatar image Darkstryder
11 1

updated 2013-03-12 17:44:40 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
1

answered 2013-03-12 17:44:10 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-03-12 16:47:47 +0800

Seen: 25 times

Last updated: Mar 12 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More