Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05E60C11C for ; Fri, 13 Sep 2013 05:40:49 +0000 (UTC) Received: (qmail 76990 invoked by uid 500); 12 Sep 2013 23:37:53 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 76659 invoked by uid 500); 12 Sep 2013 23:37:52 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 76524 invoked by uid 99); 12 Sep 2013 23:37:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 23:37:52 +0000 Date: Thu, 12 Sep 2013 23:37:51 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-17625) Sorting fails when items in Array implement IEventDispatcher rather than extending EventDispatcher MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-17625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean updated FLEX-17625: --------------------------------- Labels: easytest (was: ) > Sorting fails when items in Array implement IEventDispatcher rather than extending EventDispatcher > -------------------------------------------------------------------------------------------------- > > Key: FLEX-17625 > URL: https://issues.apache.org/jira/browse/FLEX-17625 > Project: Apache Flex > Issue Type: Bug > Components: mx: List > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): Windows > Affected OS(s): Windows XP > Browser: Internet Explorer 8.x > Language Found: English > Reporter: Adobe JIRA > Labels: easytest > > Steps to reproduce: > 1.Create a class which implement IEventDispatcher (and delegates implementation to a contained EventDispatcher), that exposes a single String property. > 2.In either AIR or Flex, create some UI that displays an ArrayCollection of the class built in step 1 and sort it based on the property exposed. > 3.Add a button that changes the property of one of the objects bound in the view and then refresh the ArrayCollection. > > Actual Results: > The following error is thrown: > Error: Find criteria must contain at least one sort field value. > at mx.collections::Sort/findItem()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\Sort.as:491] > at mx.collections::ListCollectionView/http://www.adobe.com/2006/flex/mx/internal::findItem()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:956] > at mx.collections::ListCollectionView/addItemsToView()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:885] > at mx.collections::ListCollectionView/moveItemInView()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1304] > at mx.collections::ListCollectionView/handlePropertyChangeEvents()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1147] > at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1065] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at mx.collections::ArrayList/internalDispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ArrayList.as:510] > at mx.collections::ArrayList/itemUpdateHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ArrayList.as:536] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at Dummy/dispatchEvent()[C:\Documents and Settings\bwhiton\My Documents\Flex Builder 3\DummyClass\src\Dummy.as:39] > at Dummy/set someProperty()[C:\Documents and Settings\bwhiton\My Documents\Flex Builder 3\DummyClass\src\Dummy.as:22] > at EventDispatcherBug/changeClicked()[C:\Documents and Settings\bwhiton\My Documents\Flex Builder 3\DummyClass\src\EventDispatcherBug.mxml:36] > at EventDispatcherBug/___EventDispatcherBug_Button1_click()[C:\Documents and Settings\bwhiton\My Documents\Flex Builder 3\DummyClass\src\EventDispatcherBug.mxml:43] > Expected Results: > The collection should resort > > Workaround (if any): > Extend EventDispatcher rather than implementing IEventDispatcher (this makes the problem go away) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira