0

Composite Component View Model

asked 2013-10-02 10:31:51 +0800

JLI gravatar image JLI
11 1

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.

delete flag offensive retag edit
Be the first one to answer this question!
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-10-02 10:31:51 +0800

Seen: 21 times

Last updated: Oct 02 '13

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