Defer the Creation of Child Components"
From Documentation
m |
m |
||
Line 1: | Line 1: | ||
{{ZKDevelopersReferencePageHeader}} | {{ZKDevelopersReferencePageHeader}} | ||
− | For sophisticated pages, the performance can be improved if we defer the creation of child components until they are becoming visible. The simplest way to do it is by use of the <tt>fulfill</tt> attribute. In the following example, the children of the second tab panel are created only if it becomes visible | + | For sophisticated pages, the performance can be improved if we defer the creation of child components until they are becoming visible. The simplest way to do it is by use of the <tt>fulfill</tt> attribute. In the following example, the children of the second tab panel are created only if it becomes visible. |
<syntax lang="xml" > | <syntax lang="xml" > |
Revision as of 09:50, 19 January 2011
For sophisticated pages, the performance can be improved if we defer the creation of child components until they are becoming visible. The simplest way to do it is by use of the fulfill attribute. In the following example, the children of the second tab panel are created only if it becomes visible.
<syntax lang="xml" > <tabbox>
<tabs> <tab label="Preload" selected="true"/> <tab id="tab2" label="OnDemand"/> </tabs> <tabpanels> <tabpanel>
This panel is pre-loaded since no fulfill specified
</tabpanel> <tabpanel fulfill="tab2.onSelect">
This panel is loaded only tab2 receives the onSelect event
</tabpanel> </tabpanels>
</tabbox> </syntax>
For more information, please refer to the On-demand Evaluation section.
Version History
Version | Date | Content |
---|---|---|