b30-1948963.zul

来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 42 行

ZUL
42
字号
<?xml version="1.0" encoding="UTF-8"?><!--B30-1948963.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Apr 23 12:59:04 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native">	<n:ol>		<n:li>Type a time into the Timebox, then click the button.</n:li>		<n:li>Repeat 1 step again (type the same time as previous one), you should not see any error box.</n:li>	</n:ol>	<window title="My First Window" border="normal" width="200px">	<timebox id="time"/>	<button label="validate" onClick="validate()"/>	<zscript>	void validate()	{	if(time.getValue() == null)	throw new WrongValueException(time, &quot;Empty&quot;);	else	{	time.setText(&quot;&quot;);	time.clearErrorMessage(true);	}	}	</zscript>	</window></zk>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?