skip to content
Ryan Wu

Use the namespace in ZUL:

<?taglib uri="http://www.zkoss.org/2005/zk/client" prefix="w" ?>

Sample component:

<textbox id="name" value="123456789~~~!!!" />

Get the component:

<script type="text/javascript"><![CDATA[
zk.afterMount(function() {
var v = jq('$name');
alert(v.val());
});
]]></script>

Print:

<button label="Print" w:onClick="window.print();"/>

Close:

<button label="Close" w:onClick="window.close();" />

References
http://docs.zkoss.org/wiki/Zk.Widget

http://docs.zkoss.org/wiki/CDG5:_zk#afterLoad