Thanks Roland,
just tried your quick fix ... I have switched FlexXMLApplicationContext to XMLApplicationContext:
PHP Code:
public var applicationContext:XMLApplicationContext;
... and added the FlexStageDefaultObjectSelector class because it was needed:
PHP Code:
// Force inclusion of classes not referenced elsewhere in the code
{
AppController,
AppMockDelegate,
FlexStageDefaultObjectSelector,
EventHandlerMetadataProcessor,
DefaultAutowiringStageProcessor,
RouteEventsMetaDataProcessor
}
Now I am getting another error:
PHP Code:
Error: Can't autowire property by name: Unsatisfied dependency in object [settingsBoxCP] for property [currentLocale]
at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWireFieldByName()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\autowire\DefaultAutowireProcessor.as:324]
at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWireField()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\autowire\DefaultAutowireProcessor.as:262]
at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWire()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\autowire\DefaultAutowireProcessor.as:183]
at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/wire()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\AbstractObjectFactory.as:592]
at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/buildObject()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\AbstractObjectFactory.as:528]
at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/getObject()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\AbstractObjectFactory.as:388]
at org.springextensions.actionscript.ioc.factory.support::DefaultListableObjectFactory/preInstantiateSingletonsWithObjectDefinition()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\DefaultListableObjectFactory.as:214]
at org.springextensions.actionscript.ioc.factory.support::DefaultListableObjectFactory/preInstantiateSingletons()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\DefaultListableObjectFactory.as:191]
at org.springextensions.actionscript.context.support::AbstractApplicationContext/resourceLoadQueue_completeHandler()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\AbstractApplicationContext.as:455]
at org.springextensions.actionscript.context.support::AbstractApplicationContext/loadComplete()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\AbstractApplicationContext.as:306]
at org.springextensions.actionscript.context.support::XMLApplicationContext/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:398]
at org.springextensions.actionscript.context.support::XMLApplicationContext/loadNextConfigLocation()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:436]
at org.springextensions.actionscript.context.support::XMLApplicationContext/loader_completeHandler()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:370]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
For some reason the property injection seems to be broken now:
PHP Code:
[Inject(name='appModel', property='currentLocale')]
[Bindable]
public function get currentLocale():LocaleVO
{
return _currentLocale;
}
public function set currentLocale(value:LocaleVO):void
{
_currentLocale = value;
_isCurrentLocaleDirty = true;
invalidateProperties();
}
... see SettingsBoxCP.as file in the SVN:
http://masuland.googlecode.com/svn/t...ttingsBoxCP.as
Any ideas how to fix that?