arg"

From Documentation
m
m (correct highlight (via JWB))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ZKZUMLReferencePageHeader}}
+
{{ZUMLReferencePageHeader}}
  
== arg - java.util.Map ==
+
= arg - java.util.Map =
The <tt>arg</tt> argument passed to the <tt>createComponents</tt> method in the <javadoc>org.zkoss.zk.ui.Executions</javadoc> class. It might be <tt>null</tt>, depending on how <tt>createComponents</tt> is called.
+
The <code>arg</code> argument passed to the <code>createComponents</code> method in the <javadoc>org.zkoss.zk.ui.Executions</javadoc> class. It might be <code>null</code>, depending on how <code>createComponents</code> is called.
  
 
It is the same as self.desktop.execution.arg.
 
It is the same as self.desktop.execution.arg.
Line 17: Line 17:
 
</source>
 
</source>
  
Notice that <tt>arg</tt> is available only when creating the components for the included page, say <tt>my.zul</tt>. On the other hand, all events, including <tt>onCreate</tt>, are processed later. Thus, if you want to access <tt>arg</tt> in the <tt>onCreate</tt>'s listener, use the <tt>getArg</tt> method of the <javadoc>org.zkoss.zk.ui.event.CreateEvent</javadoc> class.
+
Notice that <code>arg</code> is available only when creating the components for the included page, say <code>my.zul</code>. On the other hand, all events, including <code>onCreate</code>, are processed later. Thus, if you want to access <code>arg</code> in the <code>onCreate</code>'s listener, use the <code>getArg</code> method of the <javadoc>org.zkoss.zk.ui.event.CreateEvent</javadoc> class.
  
==Version History==
+
=Version History=
  
{{ZKZUMLReferencePageFooter}}
+
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
{{ZUMLReferencePageFooter}}

Latest revision as of 13:26, 19 January 2022

arg - java.util.Map

The arg argument passed to the createComponents method in the Executions class. It might be null, depending on how createComponents is called.

It is the same as self.desktop.execution.arg.

params.put("name", "John");
Executions.createComponents("/my.zul", null, params);

Then, in my.zul,

<window title="${arg.name}">

Notice that arg is available only when creating the components for the included page, say my.zul. On the other hand, all events, including onCreate, are processed later. Thus, if you want to access arg in the onCreate's listener, use the getArg method of the CreateEvent class.

Version History

Version Date Content
     



Last Update : 2022/01/19

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