init"

From Documentation
m
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ZKJSPTagsEssentialsPageHeader}}
 
{{ZKJSPTagsEssentialsPageHeader}}
  
 +
==init==
 
'''Syntax'''
 
'''Syntax'''
  
 
  <zk:init use="..." [''arg0''="..."] [''arg1''="..."]/>
 
  <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 <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 type="interface">org.zkoss.zk.ui.util.Initiator</javadoc>.
+
It defines an initiator that will be instantiated and called when the ZUML document is loaded. The class must be specified in the <code>use</code> attribute<ref>Unlike ZUML, the attribute is called <code>use</code>, rather than <code>class</code>, because of the limitation of JSP</ref>, and it must implement <javadoc type="interface">org.zkoss.zk.ui.util.Initiator</javadoc>.
  
 
For more information please refer to [[ZUML Reference/ZUML/Processing Instructions/init|ZUML Reference]].
 
For more information please refer to [[ZUML Reference/ZUML/Processing Instructions/init|ZUML Reference]].

Latest revision as of 12:40, 19 January 2022


init

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 : 2022/01/19


Version Date Content
     


Last Update : 2022/01/19

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