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

Set an invalid value to locale property of Spark:Sort, an error dialog with title "Undefined locale" popup.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1.create a Spark:Sort instance under "Declaration" tag without Spark:SortField instances in it. Don't set any property of this sort.
      2.create an ArrayCollection data source.
      3.set invalid value, like ''(empty string, length = 0, not string of null) to locale style of this sort.
      4.set sort property of data source to spark:Sort instance.
      5.call refresh() method of ArrayCollection.

      Actual Results:
      An error dialog popup with title "Undefined locale" popup.

      Expected Results:
      Sort will works as locale is undefined when set an invalid value of locale.

      Workaround (if any):
      If set locale value to any string, like "abc", "en-US" after Sort instance created, then set '' value will not cause any error.

      NOTE: This bug only happened when set '' to locale of Sort directly after create Sort instance.

      Please see detail in attached sample code.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: