Constraint "no empty" validation too~

asked 2016-10-11 02:31:42 +0800

gardener gravatar image gardener
1 1

hi, When the textbox is not empty check, using the no empty, how to display only the red border, does not display the message


delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted

answered 2016-10-12 03:52:08 +0800

cor3000 gravatar image cor3000
4466 2 7
ZK Team

you can extend the SimpleConstraint class and implement the CustomConstraint interface for your own error message handling. You can even do nothing if you like.


here a running example: http://zkfiddle.org/sample/u5efru/1-custom-constraint-without-error-message


link publish delete flag offensive edit

answered 2016-10-20 04:20:03 +0800

gardener gravatar image gardener
1 1

thanks,That's what I need.

link publish delete flag offensive edit


thanks for getting back... if possible please mark the answer as correct/helpful so that others can find more easily

cor3000 ( 2016-10-20 06:54:47 +0800 )edit
Your answer
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

1 follower



Asked: 2016-10-11 02:31:42 +0800

Seen: 33 times

Last updated: Oct 20 '16

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