0

Create Component in MVVM

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

kleponboy gravatar image kleponboy flag of Indonesia
54 5
http://stupidprogrammers....

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

Hi,

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.

Thanks,

Klepon

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

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?

BindingAnnotationforaCustom_Component

maybe that can help you.

link publish delete flag offensive edit

Comments

@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
0

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

WilliamPeloquin gravatar image WilliamPeloquin
1

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

Willie

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
2 followers

RSS

Stats

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

Seen: 32 times

Last updated: May 27 '14

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