0

how to clear validation messages

asked 2013-08-27 08:16:09 +0800

dis gravatar image dis flag of Switzerland
140 4

Hi

We implemented a form generator with validation. We throw a WrongValueException to show a validation error on a specific input field.

Question: how to programmatically clear the validation error messages?

Thank you Dieter

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-08-28 02:29:04 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

updated 2013-08-28 02:29:51 +0800

Use Clients.clearWrongValue(Component c) API

link publish delete flag offensive edit
0

answered 2013-08-28 08:25:37 +0800

dis gravatar image dis flag of Switzerland
140 4

Clients.clearWrongValue(Component c) needs the component. What I am looking for is something more flexible. During the validation I dont have the component anymore, but I know that there might be a error message from a previous validation. So what I am looking for is something like:

Clients.clearAllWrongValues()

However, I will implement a workaround. Thank you

link publish delete flag offensive edit

Comments

what are you using MVC or MVVM?

ashishd ( 2013-08-28 09:56:15 +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: 2013-08-27 08:16:09 +0800

Seen: 64 times

Last updated: Aug 28 '13

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