Hi, I've updated the source of the validation library to version 1.2, and I discovered that the ValidatorSubscriber doesn't pass feedbacks of its state to the controller (basically you don't get the red focus if the field is not valid).
You can see this behavior in the Sample3 Application file of the ValidationTest project, the same test was working fine in version 1.0 of the validation library
Very strange, I went to the trunk and download the Validation e ValidationTest projects, than compiling using sdk 3.3 (tested also with 3.4, 3.5 and 4.0)
and when I run Sample3 (svn revision 12842) couldn't get the error red focus on textInputs nor the error toolTip. Only the Form Validity box changed state after pressing the validate button.
Sample1 and Sample2 are working fine.
I discovered the same issue and ended up fixing it myself and buildling a new Validation SWC from the SVN source.
The fix is in the subscribeControl function in ValidatorGroupSubscriber.
Change
if( subscriber.listener && subscriber.listener is Array )
{
subscriberListener = new ValidatorMultipleListeners( subscriber.listener as Array );
}
else if( ! subscriber.listener is Array )
{
subscriberListener = EventDispatcher( subscriber.listener );
}
to
if( subscriber.listener && subscriber.listener is Array )
{
subscriberListener = new ValidatorMultipleListeners( subscriber.listener as Array );
}
else if( !(subscriber.listener is Array) )
{
subscriberListener = EventDispatcher( subscriber.listener );
}
The subscriber listener wasn't getting set due to the missing brackets.
Anthony
North America
Europe, Middle East and Africa
Asia Pacific