tell me why

asked 2011-10-30 00:16:18 +0800

streamif gravatar image streamif

<window id="a1" use="testUse">

public void go()
testUse xx = new testUse();
<textbox id="b1" value="aaaaa"/>
<button label="ok" onClick="go()"/>

public class testUse()
public String go()
return "hello";

---error! why? how to do?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-10-30 13:15:31 +0800

gyowanny gravatar image gyowanny
283 1 2 6

First of all, your class name ends with wrong symbols "()".

Second, you may want to read more about the "use" attribute: http://books.zkoss.org/wiki/ZK_Developer's_Guide/Fundamental_ZK/ZK_User_Interface_Markup_Language/ZK_Attributes

In your case you must extend your java class to org.zkoss.zul.Window. Thus, your class would be changed to

public class testUse extends org.zkoss.zul.Window {

You may want to read about the "apply" attribute too.

Thank you,


link publish delete flag offensive edit

answered 2011-10-30 19:10:16 +0800

streamif gravatar image streamif

thank you very much

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




Asked: 2011-10-30 00:16:18 +0800

Seen: 159 times

Last updated: Oct 30 '11

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