Native"
From Documentation
Tmillsclare (talk | contribs) m |
m (correct highlight (via JWB)) |
||
(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 <code>n:table</code>, <code>n:tr</code> and <code>n:td</code> 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= | ||
− | {{ | + | {{LastUpdated}} |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
! Version !! Date !! Content | ! Version !! Date !! Content |
Latest revision as of 13:27, 19 January 2022
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
Version | Date | Content |
---|---|---|