On-demand Evaluation"
From Documentation
m |
|||
Line 5: | Line 5: | ||
For example, you could split a ZUML document into multiple, and then load the required ones when necessary. Please refer to the [[ZK Developer's Reference/UI Composing/ZUML/Load ZUML in Java|Load ZUML in Java]] section for how to load a ZUML document dynamically. | For example, you could split a ZUML document into multiple, and then load the required ones when necessary. Please refer to the [[ZK Developer's Reference/UI Composing/ZUML/Load ZUML in Java|Load ZUML in Java]] section for how to load a ZUML document dynamically. | ||
− | It improves the performance in both the server and client sides. It is suggested to apply this technique when appropriate. ZK Loader provides a standard on-demand evaluation called fulfill to simplify the implementation. | + | It improves the performance in both the server and client sides. It is suggested to apply this technique when appropriate. ZK Loader provides a standard on-demand evaluation called ''fulfill'' to simplify the implementation. |
=Load-on-Demand with the fulfill attribute= | =Load-on-Demand with the fulfill attribute= |
Revision as of 10:33, 7 December 2010
By default, ZK creates components based on what are defined in a ZUML document, when loading the document. However, we can defer the creation of some sections of components, until necessary, such as becoming visible. This technique is called load-on-demand or render-on-demand.
For example, you could split a ZUML document into multiple, and then load the required ones when necessary. Please refer to the Load ZUML in Java section for how to load a ZUML document dynamically.
It improves the performance in both the server and client sides. It is suggested to apply this technique when appropriate. ZK Loader provides a standard on-demand evaluation called fulfill to simplify the implementation.
Load-on-Demand with the fulfill attribute
Version History
Version | Date | Content |
---|---|---|