b30-1879487.zul
来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 47 行
ZUL
47 行
<?xml version="1.0" encoding="UTF-8"?><!--B30-1879487.zul{{IS_NOTE Purpose: Description: History: Mon Jan 28 10:24:23 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native"> <n:p>There are two situations in which this events happen</n:p> <n:ol> <n:li> After loading zul, please drop down the list of items and click outside of the combobox (for example in order to close dropped down list without any selection) the onSelect event should not fire and messagebox 'on select: item is null' shouldn't appear. </n:li> <n:li> After loading zul, please focus in combobox, and then click on the 'anyMessage' button. It should not show any messages about the onSelect event. It should show "anyMessage". </n:li> </n:ol> <vbox> <combobox id="cb1" constraint="strict" onSelect="Messagebox.show(self.selectedItem != null ?self.selectedItem.value : " on select: item is null");"> <comboitem label="aaa" value="1" /> <comboitem label="bbb" value="2" /> </combobox> <zscript> </zscript> <button label="anyMessage" onClick="Messagebox.show("anyMessage")" /> </vbox></zk>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?