Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.4 (Release)
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 7.x
Language Found: English
Description
Steps to reproduce:
1. Add a ButtonBar Component containing a single Object inside the data provider.
<mx:ButtonBar id="bb" x="22" y="31">
<mx:dataProvider>
<mx:Object toolTip="test"/>
</mx:dataProvider>
</mx:ButtonBar>
Actual Results:
Error: ERROR: The dataProvider of 'bb' must not contain objects of type flash.display.DisplayObject.
at mx.controls::NavBar/set dataProvider()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\NavBar.as:376]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\Container.as:3580]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\Container.as:3478]
at mx.core::Container/createChildren()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\Container.as:2580]
at mx.core::UIComponent/initialize()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5252]
at mx.core::Container/initialize()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\Container.as:2517]
at mx.core::Application/initialize()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\Application.as:845]
at ButtonBarBug/initialize()[C:\Users\nrock\IC\ButtonBarBug\src\ButtonBarBug.mxml:0]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:1623]
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2480]
at mx.managers::SystemManager/docFrameHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2328]
Expected Results:
it should say something like 'Unsupported dataprovider type', or if the narrative style of the current error is to be preserved, "The dataPRovider of 'bb' must be either a ViewStack or an Array".
Workaround (if any):
n/a