From Documentation

(Difference between revisions)
Jump to: navigation, search
Line 32: Line 32:
=Version History=
=Version History=
{| border='1px' | width="100%"
{| border='1px' | width="100%"
! Version !! Date !! Content
! Version !! Date !! Content

Revision as of 08:20, 17 December 2010

Name: zk
Namespace shortcut: zk

It is the standard namespace for specifying ZK specific elements and attributes, such as the zk element and unless attribute.

By default, ZK Loader will detect if a XML element or attribute is a special element or attribute, and then handle it differently. However, if the default XML namespace is the native namespace or a component set that accepts any element name, such as the XHTML langauge, you have to specify the zk namespace. Otherwise, they will be interpreted as a component. For example,

<html xmlns="native" xmlns:u="zul" xmlns:zk="zk">
		<title>ZHTML Demo</title>
		<script type="text/javascript">
		function woo() { //running at the browser
		void addItem() { //running at the server
		<u:window title="HTML App">
			<input type="button" value="Add Item"
			onClick="woo()" zk:onClick="addItem()"/>

Version History

Last Update : 2010/12/17

Version Date Content

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