Create Component in MVVM

asked 2014-05-25 14:00:08 +0800

kleponboy gravatar image kleponboy flag of Indonesia
54 5

updated 2014-05-25 14:00:33 +0800


I can create any component in Java using MVC pattern, but i don't know how to create component if using MVVM pattern, please anyone give me example or hint.



delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-25 21:27:08 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

Hello Klepon, did you see those links below?


maybe that can help you.

link publish delete flag offensive edit


@mhj That document is MVC pattern. I tried also searching for MVVM way a while ago and didn't find the docs for it (only a old reference that they would make doc's for it)

chillworld ( 2014-05-25 22:40:37 +0800 )edit

As I see it, the nature of MVVM is not to refer to any UI Components in your ViewModels. So I see no contradiction in creating your components by inheriting existing component classes. Then you can use these components in a zul file and apply property- and command bindings to your ViewModel.

cor3000 ( 2014-05-27 10:32:48 +0800 )edit

Is there a special use case you are trying to achieve?

cor3000 ( 2014-05-27 10:34:31 +0800 )edit

answered 2014-05-27 13:24:59 +0800

WilliamPeloquin gravatar image WilliamPeloquin

Perhaps this tutorial might help...

Get ZK Up and Running with MVVM

It is located in the ZK Framework Documentation section of the web site. Sorry I am unable to publish a link yet. Guess I have no karma yet!

http: //books.zkoss.org/wiki/ZKGettingStarted/GetZKUpandRunningwithMVVM


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




Asked: 2014-05-25 14:00:08 +0800

Seen: 31 times

Last updated: May 27 '14

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