Select to view content in your preferred language

Singleton access with multiple widget containers.

612
2
10-06-2010 01:16 AM
Ganael_Jatteau
Emerging Contributor
Hello,

I use a flexviewer with two different widget containers. The default one and another custom one referenced in my config.xml (and stored in the webapp with the other widgets). Everything is loaded by the widgetManager (both widgets and containers).

I can't establish a communication between the widgets from two different containers. EventBus.getInstance() returns two different instances depending on the widget container. If it was Java code, I would say the widgets are not loaded with the same class loader.

I'd be very happy to share with someone experiencing something similar.

Cheers,
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
It is very similar to how Java can have separate class loaders. See this thread on background and how to load widgets into the same ApplicationDomain.

http://forums.arcgis.com/threads/11960-com.esri.ags.symbols.TextSymbol-is-not-TextSymbol-in-FlexView...
0 Kudos
Ganael_Jatteau
Emerging Contributor
Thanks! That solves the problem!
0 Kudos