-
1. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
HodmiAug 3, 2010 5:44 AM (in response to Divyakumar Jain)
If you add the tile swc to your project and Mosaic namespace to your root tag (xmlns:mc="com.adobe.mosaic.core.*") then you should have access to the mosaicApp IApplication object.
-
2. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
Divyakumar Jain Aug 4, 2010 8:13 PM (in response to Hodmi)Yes that is possible for Tile component but what if my object is not a tile component. I dont want to display component on UI so i am not defining it as Tile.
Having mosaicApp kind of variable in non Tile component will help in creating delegates, Front Controllers etc.
-
3. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
matzeller Aug 4, 2010 9:44 PM (in response to Divyakumar Jain)It sounds like you want to use a service (no UI) for your applications. Have you looked at the new services feature in Mosaic 9.5 (http://help.adobe.com/en_US/LiveCycleMosaic/9.0/createTile/WSe851854fd1e0856a14b90874128fe 1df2eb-8000.html). There are is also a sample for the implementation of services: http://help.adobe.com/en_US/livecycle/9.0/samples/Mosaic_StockMosaicService.html
Cheers,
Matthias Zeller
Group Product Manager
-
4. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
Divyakumar Jain Aug 5, 2010 12:18 PM (in response to matzeller)In a way i want to have service which listents to message from other tiles. For service to listen to message i need have mosaicApp variable using i can execute following code.
mosaicApp.addMessageListener(txtNamespace.text,txtName.text,onMessage);
Can i do that without inheriting Tile Class in service class.
Thanks,
Divyakumar Jain
-
5. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
Divyakumar Jain Jun 1, 2011 7:53 PM (in response to Divyakumar Jain)I have resumed my work of exploring Mosaic as a tool for Enterprise RIA.So want to follow-up on this forum post.
Basically I want Moasic service to listen to Mosaic message and react to it.
Let me know how can i get this thing noticed by Adobe Product Manager for Mosaic. I have posted this on idea.adobe.com
-
6. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
dwallingJun 1, 2011 7:59 PM (in response to Divyakumar Jain)
This has been addressed in the next version of mosaic (after 9.5.0.2). Contact your account representative to get on the preview program.
Don
-
7. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
Divyakumar Jain Jun 1, 2011 8:23 PM (in response to dwalling)Thanks for the quick response i will look at it.
-
8. Re: Getting instance of mosaicApp (IApplication) in non Tile Objects
HodmiJun 2, 2011 6:39 AM (in response to Divyakumar Jain)
As Don mentioned, in the upcoming release of Mosaic the service objects have access to the framework's context so it can send and receive messages.
If must use Mosaic 9.5 then you can still pass the context object into the service from a tile, but the timing becomes tricky. I wrote a blog article with one solution (not saying its the only, or the best) that you may want to look at:
http://blogs.adobe.com/steampowered/2010/11/service-interruptus.html