-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I was wondering if it is possible to have a view model for a composite component. The following code within my component file gives me an error message
<div apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('MyComponentViewModel')">
</div>
The error message is
org.zkoss.zk.ui.UiException: can't find Page to resolve a view model class : 'MyComponentViewModel'
Is this even possible or do I always have to use the view model provided by the containing component?
J.
Asked: 2013-10-02 10:31:51 +0800
Seen: 21 times
Last updated: Oct 02 '13
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]