0 Replies Latest reply on Aug 3, 2009 4:16 PM by Jason Szeto

    [svn:fx-3.x] 9030: Adding support for multiple error messages in UIComponent

    Jason Szeto Level 3

      Revision: 9030

      Author:   jszeto@adobe.com

      Date:     2009-08-03 16:15:54 -0700 (Mon, 03 Aug 2009)

       

      Log Message:

      ***********

      Adding support for multiple error messages in UIComponent

       

      http://bugs.adobe.com/jira/browse/SDK-11973 - Multiple validators on one UI element should not clobber each other

       

      UIComponent receives multiple event notifications that an attached validator has succeeded or failed. However, it was not handling multiple errors or combinations of errors and successes in the correct manner.

       

      Thanks to Aaron Boushley for submitting this patch. His patch stores the error messages and validators in an error state into a couple of arrays. When a validation result event is received, we either add or remove items to these arrays.

       

      I updated some variable names to match the correct Flex coding style and delayed the creation of the error arrays until the first validation result event is received.

       

      QE notes: Add tests for this use case

      Doc notes: Add documentation for this use case

      Bugs: SDK-11973

      Reviewer: Jason

      Tests run: Validators

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-11973

          http://bugs.adobe.com/jira/browse/SDK-11973

       

      Modified Paths:

      **************

          flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/core/UIComponent.as