0

constraint error box in java

asked 2017-06-20 10:25:39 +0800

ofaruk gravatar image ofaruk
5 1

updated 2017-06-20 10:26:28 +0800

i.stack.imgur.com/YG4Jc.png

How can I generate constraint error box in java shown in the link.

The no empty constraint throwns onChanging event, I want throwns in button onClick.

When the save button is clicked if tele is empty the error box shows.

Thank you.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-08 16:30:27 +0800

cor3000 gravatar image cor3000
3494 1 7
ZK Team

you can call textbox.setErrorMessage() as in the example below

http://zkfiddle.org/sample/2218lj7/1-error-message-from-java

this works with any InputElement

Robert

link publish delete flag offensive 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: 2017-06-20 10:25:39 +0800

Seen: 20 times

Last updated: Nov 08