0

Zk + spring MVC or ZK+IOC ..What is the difference, Which one is preffered.

asked 2010-07-13 00:21:38 +0800

drajasuman gravatar image drajasuman
342 1

Hi..
ZK follows MVC architecture.

Which is better [ ZK controller or Spring MVC Controller]...

Option 1 --- > ZK view COmponent + ZK Controller + SPring IOC + Hibernate + DATABASE
Option 2 -- > Can i use ZK VIEW + Spring MVC + Spring IOC + Hibernate + DATABASE

I know how to use option 1..
But how to use Option 2... Which is preffered.

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2010-07-13 07:28:38 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Option 2 is difficult to achieve. Option 1 is easy and straight forward. The link I posted to one of your questions last week with the simple sample app is done in this paradigm. My GenericForwardComposer's are injected with data access services by the Spring IOC container.

link publish delete flag offensive edit

answered 2010-07-13 07:32:59 +0800

drajasuman gravatar image drajasuman
342 1

Thanks Clark...
Is there any issues if i can implement option 1 compared to option 2. Is it ok if i go ahead and implement my project with option 1.

link publish delete flag offensive edit

answered 2010-07-13 10:49:24 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Well, "any issues" is pretty broad...me and many others do it using Option 1's paradigm. No framework/IDE/toolset is perfect. You learn the nuances of each and deal with them along the way.

link publish delete flag offensive edit

answered 2010-07-14 02:38:15 +0800

Arsen gravatar image Arsen
384 5

In my application I use MVP
View (zul page + ZK Composer) + framework independent Presenter + ORM + Database
Spring's injections are used on each level.

It's working well :-)

link publish delete flag offensive edit

answered 2010-07-14 04:06:15 +0800

drajasuman gravatar image drajasuman
342 1

Zk COntroller is Composer ?

link publish delete flag offensive edit

answered 2010-07-16 03:27:08 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi drajasuman
Yes, it is Composer

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-07-13 00:21:38 +0800

Seen: 584 times

Last updated: Jul 16 '10

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