0

Performance Issue with MVVM

asked 2013-03-04 15:15:17 +0800

Payman gravatar image Payman
1

I would like to know if fulfill attribute works with MVVM pattern. In fact, right now, the pages are very slow, because we have several VMs on the page, and, I need to render them only when they become visible.

I found Performance Tips page on ZK UI site, but, not sure if they are working also in MVVM pattern.

Thanks for your help. Payman

delete flag offensive retag edit

Comments

In my test, MVVM is slower than MVC 2-3 times. That is because MVVM has to do the magic binding and access data through EL. However it helps me write less glue code. however using the fulfill in MVVM should not has issues, except you are mixing too many MVC stuff with MVVM.

dennis ( 2013-03-11 03:33:36 +0800 )edit

Do you know whether fulfill attribute is available in the community edition?

Payman ( 2013-03-22 15:22:46 +0800 )edit

As my experience, CE supports the fulfill attribute.

paowang ( 2013-04-10 11:44:26 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-05-07 16:01:44 +0800

Payman gravatar image Payman
1

I am using ZK with Groovy and Grails, and I use MVVM pattern. in the gsp file, I define a ZK window as below: <z:window id="checklistReadOnlyWindow" fulfill="onOpen" border="0" visible="@load(vm.checkListReadOnly)" >="" ...="" <="" z:window="">

However, after setting fulfill attribute for the window, I get the following exception: Class org.zkoss.zk.ui.metainfo.PropertyNotFoundException Message Method, setFulfill, not found for class org.zkoss.zul.Window

When I check on ZK Window component JavaDoc, there is not fulfill attribute: http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Window.html

But, on the ZK OnDemand example, there is an window exaple with fulfill attribute: http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Composing/ZUML/On-demand_Evaluation (http://books.zkoss.org/wiki/ZKDeveloper%27sReference/UIComposing/ZUML/On-demandEvaluation)

I would really appreciate if anybody can help. Thanks, Payman

link publish delete flag offensive edit
0

answered 2013-05-07 16:03:53 +0800

Payman gravatar image Payman
1

I am using ZK with Groovy and Grails, and I use MVVM pattern. in the gsp file, I define a ZK window as below: <z:window id="checklistReadOnlyWindow" fulfill="onOpen" border="0" visible="@load(vm.checkListReadOnly)" >="" ...="" <="" z:window="">

However, after setting fulfill attribute for the window, I get the following exception: Class org.zkoss.zk.ui.metainfo.PropertyNotFoundException Message Method, setFulfill, not found for class org.zkoss.zul.Window

When I check on ZK Window component JavaDoc, there is not fulfill attribute: http : //www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Window.html

But, on the ZK OnDemand example, there is an window exaple with fulfill attribute: http : //books.zkoss.org/wiki/ZKDeveloper%27sReference/UIComposing/ZUML/On-demandEvaluation

I would really appreciate if anybody can help. Thanks, Payman

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
1 follower

RSS

Stats

Asked: 2013-03-04 15:15:17 +0800

Seen: 66 times

Last updated: May 07 '13

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