use"

From Documentation
m
m
Line 1: Line 1:
 
{{ZUMLReferencePageHeader}}
 
{{ZUMLReferencePageHeader}}
  
 +
'''Syntax:'''
 
  use="''a-class-name''"
 
  use="''a-class-name''"
  use="${EL_returns_a_class_or_a_class_name}"
+
  use="${''EL_returns_a_class_or_a_class_name''}"
  use="${a_component}" (since 3.6.0)
+
  use="${''a_component''}"
  
 
It specifies a class to create a component instead of the default one. In the following example, <tt>MyWindow</tt> is used instead of the default class, <javadoc type="interface">org.zkoss.zul.Window</javadoc>.
 
It specifies a class to create a component instead of the default one. In the following example, <tt>MyWindow</tt> is used instead of the default class, <javadoc type="interface">org.zkoss.zul.Window</javadoc>.
  
 
<source lang="xml" >
 
<source lang="xml" >
<window use="MyWindow"/>
+
<window use="MyWindow"/>
 
</source>
 
</source>
  
Line 14: Line 15:
 
Notice that, if the expression returns a component, the component shall not belong to any page.
 
Notice that, if the expression returns a component, the component shall not belong to any page.
  
==Version History==
+
=Version History=
  
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"

Revision as of 10:49, 18 November 2010

Syntax:

use="a-class-name"
use="${EL_returns_a_class_or_a_class_name}"
use="${a_component}"

It specifies a class to create a component instead of the default one. In the following example, MyWindow is used instead of the default class, Window.

<window use="MyWindow"/>

If an EL expression is used, it can return a class name, a class instance, or a component instance. Notice that, if the expression returns a component, the component shall not belong to any page.

Version History

Version Date Content
     



Last Update : 2010/11/18

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