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

BindingUtils.bindProperty doesn't work with useWeakReference == true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 4.0 (Release)
    • Fix Version/s: None
    • Component/s: Data Binding
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Browser: Safari
      Language Found: English

      Description

      Steps to reproduce:
      1. Add the attached file to a Flash Builder 4 project set to compile with the Flex 4 SDK.
      2. Build and run the application, and notice that the Text components text doesn't stay in sync with the TextArea's text.

      Actual Results:
      The components text don't stay in sync because the data binding didn't work.

      Expected Results:
      The components text should stay in sync.

      Workaround (if any):
      In the BindingUtils.bindProperty() method, don't set useWeakReference to true.

      The behavior is much different than in the Flex 3 SDK. The data binding would work in the Flex 3 SDK if useWeakReference was set to true. With Flex 4, it doesn't work, or only works for a short time. Maybe the API docs should be updated to indicate the change in behavior?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: