1

Unable to find a setter named model that supports

asked 2014-08-19 13:37:53 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...

updated 2014-08-19 13:40:40 +0800

when i create micro component list value cannot bind.

**panelComposite.zul**




 <listbox id="box" model="${arg.data}" >

        <listhead sizable="true">
            <listheader label="Texto"/>
        </listhead>


            <template name="model">
                <listitem>
                 <!-- <listcell label="@load(each.text)"/>  -->
                  <listcell >

                  </listcell>  
                </listitem>
            </template>

    </listbox>

I have created demo here

http://zkfiddle.org/sample/1m4p0cm/12-pass-values-to-composite-component-in-mvvm

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-19 03:15:23 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi You need to move create template code into setter

public void setData(List<Objeto> data) {
    this.data = data;
    //render template
}
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: 2014-08-19 13:37:53 +0800

Seen: 70 times

Last updated: Sep 19 '14

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