0

如何禁止表单提交?

asked 2009-02-15 04:29:35 +0800

ljgrich5 gravatar image ljgrich5
27

在ZK的demo中,表单使用grid来实现的。问题是,如果用户在某个组件中输入的数据违反约束,用户也可以点击按钮进行提交。如何做到当用户输入违反约束时,不能提交表单?

delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2009-04-07 16:13:17 +0800

annbaby gravatar image annbaby
51

components constrain="里面写表达式"

也可以 implements validate

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: 2009-02-15 04:29:35 +0800

Seen: 493 times

Last updated: Apr 07 '09

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