Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33825

Default mx:DateField missing format - selecting date crashes app

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Apache Flex 4.10.0
    • None
    • mx: DateField
    • None

    Description

      After upgrade from Flex 4.7 to 4.10 mx:DateField controls are not displaying correctly.

      Usage:<mx:DateField id="startDate" formatString="YYYY-MM-DD"/>

      When date icon is clicked the resultant calendar has two 'null' values in the header. Clicking on a date gives the following stack trace:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.validators::DateValidator$/validateDate()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/validators/DateValidator.as:203]
      at mx.validators::DateValidator/doValidation()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/validators/DateValidator.as:1476]
      at mx.validators::Validator/processValidation()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/validators/Validator.as:1020]
      at mx.validators::Validator/validate()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/validators/Validator.as:953]
      at mx.validators::Validator/triggerHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/validators/Validator.as:1175]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:13412]
      at mx.controls::ComboBase/textInput_valueCommitHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/ComboBase.as:1697]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:13412]
      at mx.controls::TextInput/set text()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/TextInput.as:1646]
      at mx.controls::DateField/dateFiller()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/DateField.as:2542]
      at mx.controls::DateField/dropdown_changeHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/DateField.as:2752]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:13412]
      at mx.controls::DateChooser/dateGrid_changeHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/DateChooser.as:3354]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:13412]
      at mx.controls::CalendarLayout/http://www.adobe.com/2006/flex/mx/internal::dispatchChangeEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/CalendarLayout.as:1800]
      at mx.controls::CalendarLayout/mouseUpHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mx/src/mx/controls/CalendarLayout.as:2516]

      Attachments

        1. not-working.png
          4 kB
          jon yeargers
        2. working.png
          3 kB
          jon yeargers

        Activity

          People

            Unassigned Unassigned
            ethrbunny jon yeargers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: