0

user constraints messages possible

asked 2008-08-29 20:55:21 +0800

beginner gravatar image beginner
123 2

Hello,

wenn i add constraint="No Empty" on for example an Textboxt, an validation error is a tooltip on the browser.

I have a save-Button an react on it on Java-Side. Is there an easy way to put an error on the Text from out of my Java-Code?

Thanks in advice for giving me a suggestion.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-08-29 22:26:26 +0800

robertpic71 gravatar image robertpic71
1275 1

Hi,

i'm not sure about your issue, do want fire errormessages from your javacode.

Variant 1:
This could be done with:

throw new WrongValueException(comp, errMessage);

in your javacode.

comp = Component i.e. Textbox
errMessage = String with the errormessage

See also

this Thread
.

Variant 2:
Is write custom contraints, that can more than no empty. Check this docs.

/Robert

link publish delete flag offensive edit

answered 2008-08-30 06:27:54 +0800

beginner gravatar image beginner
123 2

thanks very much for the tip. That's exactly what i need.

i'll study it!

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: 2008-08-29 20:55:21 +0800

Seen: 204 times

Last updated: Aug 30 '08

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