0

how can i proceed after WrongValueException ?

asked 2017-06-19 05:47:06 +0800

sreejiss1 gravatar image sreejiss1
1

how can i proceed after throw WrongValueException. i used x.clearErrorMessage()?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-19 08:00:38 +0800

Darksu gravatar image Darksu
1991 1 4

Hello sreejiss1,

The following was extracted from the official documentation:

In addition to throwing WrongValueException in Constraint.validate(Component, Object), you can throw WrongValueException in other situations. For example, you can validate the user name and password when the user presses the login button.

However, notice that you have to clear the error message manually by invoking InputElement.clearErrorMessage(). Otherwise, the error message will remain there unless Textbox.setValue(String) is called.

Best Regards,

Darksu

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-19 05:47:06 +0800

Seen: 15 times

Last updated: Jun 19 '17

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