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

DateField do not honor min or maxYear setting.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.3 (Release)
    • Apache Flex 4.10.0
    • mx: DateField
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      The problem comes in when a user uses the min/maxYear attributes. If they are set it is supposed to set min and max points on the date picker. What is happening is that a user can enter a date outside of these boundires and the date picker will show it.

      Steps to reproduce:

      Here is an example:
      User sets the following
      _departField.maxYear = 2015;
      _departField.minYear = 2009; // **** Bug here will roll back before 2009 different CQ _departField.showToday = false; _departField.editable = true; From the UI if you open the datepicker it will only advance to 2015. If you then edit the date in the dateField to 2016 the date picker will show it

      Actual Results:
      DateField do not honor min/max year setting. You can enter year above the max limit.

      Expected Results:
      Validate and restrict the year to the max limit.

      Workaround (if any):

      Perhaps overriding the class to add a validator.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: