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

Webservice makeObjectsBindable is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.5 (Release)
    • None
    • RPC: WebService
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:

      1. Create a webservice that returns plain XML:

      <RootTag>
      <ItemTag (attributes...) />
      <ItemTag (attributes...) />
      <ItemTag (attributes...) />
      ....
      </RootTag>

      2. Add a <s:WebService ... > in Flex
      3. Add an <s:operation resultFormat="object" makeObjectsBindable="true" ... />
      4. Call the operation
      5. Bind to the returned ArrayCollection

      Actual Results:

      runtime issues warning:
      unable to bind to property '(propertyname)' on class 'mx.rpc.xml::SimpleContent' (class is not an IEventDispatcher)

      Expected Results:
      no warning

      Workaround (if any):

      [Bindable]
      protected var bindableCollection:ArrayCollection;

      // manually insert ObjectProxies
      protected function handleWebserviceResult(event:ResultEvent):void {
      var items:ArrayCollection = event.result.RootTag.ItemTag;
      for(var i:int=0;i<items.length;i++)

      { items[i] = new ObjectProxy(items[i]); }

      bindableCollection = items;
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: