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

Child component subclassed TextInput causes compiler error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Mobile: Text
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a custom MXML component based on s:TextInput and name it MyTextInput.

      <?xml version="1.0" encoding="utf-8"?>
      <s:TextInput xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">
      </s:TextInput>

      2. Add MyTextInput component to the main application.
      3. Compile.

      Actual Results: error:

      Multiple initializer values for default property, 'text', of type 'String'. MyTextInput.mxml /test3/src/views line 6 Flex Problem

      Expected Results: No error. Subclass of TextArea doesn't cause this error.

      Workaround (if any): Add <s:text></s:text> tag.

      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: