4

Define Model in ZUL file

asked 2013-06-27 10:08:10 +0800

jatindersingh gravatar image jatindersingh
93 5
http://javaj2eehub.com/

Where we can define view model in zul file. i have a model class but d't know how to defined in in Zul file. View Model class name is com.test.TestViewModel.java...

Thanks in Advance !

delete flag offensive retag edit

Comments

1

Refer Below code.

  <zk >
        <window width="100%" height="100%"
            apply="org.zkoss.bind.BindComposer"
            viewModel="@id('vm') @init('com.test.TestViewModel')">

    </window>
    </zk>
iamsudhir4u ( 2013-06-27 10:09:09 +0800 )edit

Thanks sudhir !

jatindersingh ( 2013-06-27 10:11:31 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-06-27 10:13:24 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...
  <window width="100%" height="100%"
        apply="org.zkoss.bind.BindComposer"
        viewModel="@id('vm') @init('com.DemoModel')"
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-06-27 10:08:10 +0800

Seen: 28 times

Last updated: Jun 27 '13

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