Skip to main content
Participant
April 28, 2010
Answered

Validation Library 1.2

  • April 28, 2010
  • 1 reply
  • 536 views

Let me start of by saying that this is a much needed extension to the out of the box validation support. Now to my problem.

The ValidatorGroup.reset() method does not do what it's suppose to. If the validator's source is a UIComponent it does not remove the error decoration (red border and tool tip). Has anybody faced this?

Looking at the source code the ValidatorGroup attempts to force the IValidatorListener to reset its validation by calling its validationResultHandler() method and passing to it a "VALID" ValidationResultEvent, but this does nothing. Shouldn't this be setting the errorString to empty string ('').

I've also downloaded the Validation and ValidationTest projects and the Sample1.mxml file illustrates this use case and it also does not work.

Am I missing something or misusing the API?

This topic has been closed for replies.
Correct answer Alex Uhlmann

Hi,

The latest commit fixes the issues you talk about below. BTW: we still send a VALID ValidationResultEvent but the bug was that we didn't send a valid target property of the event object. That's now fixed with this.

Hope it helps.

1 reply

Alex UhlmannCorrect answer
Participating Frequently
May 3, 2010

Hi,

The latest commit fixes the issues you talk about below. BTW: we still send a VALID ValidationResultEvent but the bug was that we didn't send a valid target property of the event object. That's now fixed with this.

Hope it helps.

mczauzAuthor
Participant
May 3, 2010

Thanks a lot. I've checked out the latest code and it looks good.