You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/17 06:17:18 UTC

[jira] [Updated] (FLEX-21048) MX ButtonBar containing only One object in the DataProvider Throws confusing RTE

     [ https://issues.apache.org/jira/browse/FLEX-21048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-21048:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> MX ButtonBar containing only One object  in the DataProvider Throws confusing RTE
> ---------------------------------------------------------------------------------
>
>                 Key: FLEX-21048
>                 URL: https://issues.apache.org/jira/browse/FLEX-21048
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: Button Bar
>    Affects Versions: Adobe Flex SDK 3.4 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Internet Explorer 7.x
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
> 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

--
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