Skip navigation
Dan_Carter
Currently Being Moderated

Problem with Lazy-Loading Modules responding to message

Jul 28, 2010 9:12 AM

Hi,

 

I am having a problem with my Lazy Loaded Module not receiving the first Parsley message which has been queued and redispatched when a module is loaded lazily using LazyModuleLoadPolicyTag.

 

The problem manifests itself like this,

 

Shell application has a parsley context with following objects:

 

<module:ModuleMessageInterceptor type="{ DisplayInModuleMsg } "/>


<module:ParsleyModuleDescriptor
     objectId="moduleA"
     url="com/hsbc/test/module/TestModule.swf"
     domain="{ ClassInfo.currentDomain }"
     />

<module:LazyModuleLoadPolicyTag

    objectId="lazyLoadPolicy"

    type="{ DisplayInModuleMsg }"
    />

 

Shell has ModuleViewLoader such as

 

<module:ModuleViewLoader
        loadPolicy="{lazyLoadPolicy}"
        moduleId="{ moduleId }"
        moduleManager="{ moduleA }"
        skinClass="com.adobe.cairngorm.module.ModuleViewLoaderSkin"
        >

 

A DisplayInModuleMsg is dispatched from the shell which in turn loads and displays the module but the message never gets dispatched to it.

Subsequent DisplayInModuleMsg messages are dispatched in the model correctly, it just seems to be the first time after loading that fails.

 

I was under the impression that the message would be redispatched when the module was loaded. Any ideas??

 

Could be related to:

http://forums.adobe.com/thread/680798

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points