Cairngorm 3 Module and Parsley Context initialization problem.
Hi,
I am using parsley 2.2, cairngorm 3 module library. When the module is loaded the parsley context is not getting initialized at that time and returing null for the objects managed by the parsley container.
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import org.spicefactory.parsley.flex.modules.FlexModuleSupport;
import org.spicefactory.parsley.flex.tag.builder.ContextBuilderTag;
[Bindable][Inject]public var faultMgtContainerPM:NMSFaultMgtContainerPM;
public function get contextBuilder() : ContextBuilderTag
{
return contextBuilderTag;
}
]]>
</fx:Script>
<fx:Declarations>
<spicefactory:ContextBuilder id="contextBuilderTag" config="{ NMSFaultMgtModuleContext }" />
<spicefactory:Configure />
<s:Consumer id="notification" destination="sessionlog-notification-bus"
fault="faultMgtContainerPM.notification_faultHandler(event)"
message="faultMgtContainerPM.notification_messageHandler(event)"/>
</fx:Declarations>
In the above code the Inject of NMSFaultMgtContainerPM class doesn't work and returing null when accessed in the creationComplete event of the app.
By the way the context file contains the NMSFaultMgtContainerPM class entry.
Please let me know if I am missing any thing.
Regards,
Purushotham
