0

alert cause system error

asked 2006-05-11 01:50:17 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3723339

By: michaelkmb

Hi,

Is there any constraint on using the alert command. If an exception (such as
WrongValueException) throw after the alert command, system error reported.

May 11, 2006 9:44:18 AM com.potix.zk.ui.impl.UiEngineImpl resumeAll:637
SEVERE: Unable to resume [Event processing thread: event=null, ceased=false]
com.potix.zk.ui.WrongValueException: ???? [#22000]
at com.potix.zul.html.SimpleConstraint.wrongValue(SimpleConstraint.java:218)
at com.potix.zul.html.SimpleConstraint.validate(SimpleConstraint.java:197)


Sample ZUL page

<window>
<textbox id="txt1" constraint="no empty" /> <button label="test" onClick="validate()" /> <zscript>
void validate() {
alert("started");
txt1.getValue();
}
</zscript>
</window>


delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-05-11 06:20:27 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3723535

By: henrichen

That is a bug. Please post to Bug-list. When resume, the WrongValueException should somehow be treated specially.

/henri


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: 2006-05-11 01:50:17 +0800

Seen: 294 times

Last updated: May 11 '06

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