0

如何固定id

asked 2007-07-11 08:06:04 +0800

wsm gravatar image wsm
69 2
情况是这样的:
我准备用weblog 来测试zk的性能

但是我发现每次返回的id都不一样,举个例子,我察看了一个浏览器返回的代码:
<button type="button" id="z_8m_317" z.type="zul.widget.Button" style="width:99%;"> ............

为了使用weblog 我必须每次输入正确的id, 但是这个id 每次连接,刷新都会变化,
于是我想知道 是否有办法将他捆定(仅仅为了测试),比如修改产生代码的servlet什么的

谢谢
delete flag offensive retag edit

4 Replies

Sort by » oldest newest

answered 2007-07-11 08:57:50 +0800

atticcat gravatar image atticcat
192
ZK在2.4.1版後開始支援自定的uuid generator
關於新的特色你可以參考這篇.http://www.zkoss.org/smalltalks/zk2.4.1/zk2.4.1.dsp
基本上,就是寫一個,並註冊你的IdGenerator (org.zkoss.zk.ui.sys.IdGenerator)
link publish delete flag offensive edit

answered 2007-07-11 09:02:32 +0800

wsm gravatar image wsm
69 2
谢谢 但是怎么写 我没找到例子怎么写idgenerator
link publish delete flag offensive edit

answered 2007-07-12 06:16:29 +0800

atticcat gravatar image atticcat
192
這個功能才剛推出,會推出大概也是為了作web testing
我也還沒機會試,或許你可以試試,
再post出來分享給大家.
link publish delete flag offensive edit

answered 2007-07-12 10:04:52 +0800

wsm gravatar image wsm
69 2
谢谢
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-07-11 08:06:04 +0800

Seen: 1,059 times

Last updated: Jul 12 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More