init"

From Documentation
(Created page with '{{ZKJSPTagsEssentialsPageHeader}} '''Syntax''' <zk:init class="..." [''arg0''="..."] [''arg1''="..."]/> It defines an initiator that will be instantiated and called when the …')
 
Line 3: Line 3:
 
'''Syntax'''
 
'''Syntax'''
  
  <zk:init class="..." [''arg0''="..."] [''arg1''="..."]/>
+
  <zk:init use="..." [''arg0''="..."] [''arg1''="..."]/>
  
It defines an initiator that will be instantiated and called when the ZUML document is loaded. For more information please refer to [[ZUML Reference/ZUML/Processing Instructions/init|ZUML Reference - init]].
+
It defines an initiator that will be instantiated and called when the ZUML document is loaded. The class must be specified in the <tt>use</tt> attribute<ref>Unlike ZUML, the attribute is called <tt>use</tt>, rather than <tt>class</tt>, because of the limitation of JSP</ref>, and it must implement <javadoc>org.zkoss.zk.ui.util.Initiator</javadoc>.
  
Fir example
+
For more information please refer to [[ZUML Reference/ZUML/Processing Instructions/init|ZUML Reference]].
 +
 
 +
Fir example,
 
<source lang="xml">
 
<source lang="xml">
<zk:init class="foo.MyInit"/>
+
<zk:init use="foo.MyInit"/>
 
...
 
...
 
<zk:page>
 
<zk:page>
Line 15: Line 17:
 
</zk:page>
 
</zk:page>
 
</source>
 
</source>
 +
 +
<blockquote>
 +
----
 +
<references/>
 +
</blockquote>
  
 
=Version History=
 
=Version History=

Revision as of 04:25, 26 November 2010


Syntax

<zk:init use="..." [arg0="..."] [arg1="..."]/>

It defines an initiator that will be instantiated and called when the ZUML document is loaded. The class must be specified in the use attribute[1], and it must implement Initiator.

For more information please refer to ZUML Reference.

Fir example,

<zk:init use="foo.MyInit"/>
...
<zk:page>
...
</zk:page>

  1. Unlike ZUML, the attribute is called use, rather than class, because of the limitation of JSP

Version History

Last Update : 2010/11/26


Version Date Content
     


Last Update : 2010/11/26

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.