View"
From Documentation
Line 3: | Line 3: | ||
The view is the UI of an application. It totally depends on the application's requirements. | The view is the UI of an application. It totally depends on the application's requirements. | ||
− | As described in [[ZK Developer's Reference/MVC/Model|the Model section]], many ZK components could operate based on models, such as <javadoc>org.zkoss.zul.Listbox</javadoc>. | + | As described in [[ZK Developer's Reference/MVC/Model|the Model section]], many ZK components could operate based on models, such as <javadoc>org.zkoss.zul.Listbox</javadoc>. There are two approaches to customize the rendering of each item in model: [[ZK Developer's Reference/MVC/View/Template|Template]] and [[ZK Developer's Reference/MVC/View/Renderer|Renderer]]. |
+ | |||
+ | A template is a fragment of the ZUML document that defines how to render each item in ZUML. On the other hand, a renderer is a Java class that renders each item in Java. | ||
{{ZKDevelopersReferenceHeadingToc}} | {{ZKDevelopersReferenceHeadingToc}} |
Revision as of 09:27, 8 February 2012
The view is the UI of an application. It totally depends on the application's requirements.
As described in the Model section, many ZK components could operate based on models, such as Listbox. There are two approaches to customize the rendering of each item in model: Template and Renderer.
A template is a fragment of the ZUML document that defines how to render each item in ZUML. On the other hand, a renderer is a Java class that renders each item in Java.