0

about mvvm

asked 2016-04-25 05:16:46 +0800

llw1149 gravatar image llw1149
1

I test Mvvm case,report error:Method setViewModel not found for class org.zkoss.zul.Window

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2016-04-25 05:47:53 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

updated 2016-07-13 01:16:00 +0800

cor3000 gravatar image cor3000
6280 2 7

Hi there,

Watch out, case sensitive.
If you are using previous ZK8 :

apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('my.path.ClassVM')"

ZK8 and later :

viewModel="@id('vm') @init('my.path.ClassVM')"

Greetz chill.

link publish delete flag offensive edit
0

answered 2016-04-25 06:22:08 +0800

Darksu gravatar image Darksu
1991 1 4

Hello llw1149,

Correcty mentioned by chillworld, and below you can read some more information:

http://books.zkoss.org/zk-mvvm-book/8.0/data_binding/bindcomposer.html

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2016-07-01 11:17:12 +0800

adamian gravatar image adamian
15 4

For me the problem was a missing parenthesis ")" at the end of @init.

... apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.example.SearchVM'">

instead of

... apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.example.SearchVM')">

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: 2016-04-25 05:16:46 +0800

Seen: 55 times

Last updated: Jul 13 '16

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