0

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

thanks

delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

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

cor3000 gravatar image cor3000
6280 2 7

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.

https://www.zkoss.org/wiki/ZKComponentReference/BaseComponents/InputElement#CustomConstraint

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

Robert

link publish delete flag offensive edit
0

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

Comments

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

Follow
1 follower

RSS

Stats

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

Seen: 36 times

Last updated: Oct 20 '16

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