Revision history [back]

click to hide/show revision 1
initial version

answered 2013-08-06 02:01:35 +0800

dennis gravatar image dennis

http://www.javaworld.com....

Don't use zscript(<attribute name="onCreate">...

Don't use zscript(<attribute name="onCreate">... name="onCreate">...) in side zul, it is for prototyping or small application, you should use MVC or MVVM pattern.

Don't use zscript(<attribute name="onCreate">...) in side inside zul, it is for prototyping or small application, you should use MVC or MVVM pattern.

Don't use zscript(<attribute name="onCreate">...) inside zul, it is zul if you are not developing for prototyping or small application, you should use MVC or MVVM pattern.

Don't use zscript(<attribute name="onCreate">...) inside zul if you are not developing for prototyping or small application, you should use MVC or MVC(+Model/Renderer/Template)or MVVM pattern.pattern. and also remember to enable grid/listbox ROD feature with big amount of data.

Don't use zscript(<attribute name="onCreate">...) inside zul if Your test code has 2 main issue that cause bad performance. 1. you are not developing for prototyping or small application, used zscript (it is slow, and very slow when current access), you should use MVC(+Model/Renderer/Template)or MVVM pattern. native Java+MVC, 2. you created a huge among of component at once, you should consider to use Model+Render to render the grid, and also remember to enable grid/listbox ROD feature with big amount of data.ZK will load the component only when it is needed (ROD: load on demand). Please read http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips, there provides more detail.

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