-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I test Mvvm case,report error:Method setViewModel not found for class org.zkoss.zul.Window
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.
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
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')">
Asked: 2016-04-25 05:16:46 +0800
Seen: 55 times
Last updated: Jul 13 '16
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]