0

bug for button toolbarbutton autodisable attribute

asked 2011-08-29 02:42:46 +0800

yuzexu_zk gravatar image yuzexu_zk
240 2

<window>
<button label="click me" autodisable="self,cancel" onClick="self.disabled=true"/>
</window>

when click the button the button should disabled but the autodisable attribute will set the button disabled = false

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-08-29 06:50:16 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

don't understand your issue, could you explain ?

link publish delete flag offensive edit

answered 2011-08-29 10:42:41 +0800

yuzexu_zk gravatar image yuzexu_zk
240 2

updated 2011-08-29 10:43:09 +0800

i mean the button should disabled

link publish delete flag offensive edit

answered 2011-08-29 20:56:50 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

in the code you posted, it did
have you read document http://books.zkoss.org/wiki/ZK_Component_Reference/Essential_Components/Button
tried this?
<window>
<button label="click me" autodisable="+self" />
</window>

link publish delete flag offensive edit

answered 2011-08-30 00:12:58 +0800

yuzexu_zk gravatar image yuzexu_zk
240 2

thank you

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: 2011-08-29 02:42:46 +0800

Seen: 307 times

Last updated: Aug 30 '11

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