[
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