Native"

From Documentation
(Created page with '{{ZUMLReferencePageHeader}} Name: native Namespace: http://www.zkoss.org/2005/zk/native Namespace shortcut: native It is the reserved namespace for specifying native element…')
 
m
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
  Namespace: http://www.zkoss.org/2005/zk/native
 
  Namespace: http://www.zkoss.org/2005/zk/native
 
  Namespace shortcut: native
 
  Namespace shortcut: native
 +
Java: <javadoc method="NATIVE_NAMESPACE">org.zkoss.zk.ui.metainfo.LanguageDefinition</javadoc>
  
 
It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.
 
It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.
 +
 +
<source lang="xml">
 +
<n:table xmlns:n="native">
 +
  <n:tr>
 +
    <n:td>Username</n:td>
 +
    <n:td><textbox/></n:td>
 +
  </n:tr>
 +
  <n:tr>
 +
    <n:td>Password</n:td>
 +
    <n:td><textbox type="password"/></n:td>
 +
  </n:tr>
 +
</n:table>
 +
</source>
 +
 +
where <tt>n:table</tt>, <tt>n:tr</tt> and <tt>n:td</tt> are native, i.e., they are generated directly to the client without creating a component for each of them.
 +
 +
Notice that ZK Loader assumes any element name with the native namespace is correct and generated to the client directly. It is your job to make sure there is no typo or other errors.
  
 
=Version History=
 
=Version History=
Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
+
{{LastUpdated}}
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content

Revision as of 10:49, 9 February 2012

Name: native
Namespace: http://www.zkoss.org/2005/zk/native
Namespace shortcut: native
Java: LanguageDefinition.NATIVE_NAMESPACE

It is the reserved namespace for specifying native elements. A native element represents a native tag at the client. For browsers, a native element represents a HTML tag. Unlike the xhtml language, there is no component associated with, so the performance is much better but you cannot change it dynamically.

<n:table xmlns:n="native">
  <n:tr>
    <n:td>Username</n:td>
    <n:td><textbox/></n:td>
  </n:tr>
  <n:tr>
    <n:td>Password</n:td>
    <n:td><textbox type="password"/></n:td>
  </n:tr>
</n:table>

where n:table, n:tr and n:td are native, i.e., they are generated directly to the client without creating a component for each of them.

Notice that ZK Loader assumes any element name with the native namespace is correct and generated to the client directly. It is your job to make sure there is no typo or other errors.

Version History

Last Update : 2012/02/09


Version Date Content
     



Last Update : 2012/02/09

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