Expand my Community achievements bar.

SOLVED

Getting instance of mosaicApp (IApplication) in non Tile Objects

Avatar

Level 2

Hi Everyone,

I am trying to get instance of mosaicApp (IApplication) in non Tile Object but it seems that there isn't any API to do that.

Any help will be appricated.

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

8 Replies

Avatar

Level 8

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.

Avatar

Level 2

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.

Avatar

Former Community Member

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/WSe851854fd1e0856a14b90874128fe1df2eb-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

Avatar

Level 2

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

Avatar

Level 2

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

http://ideas.adobe.com/ct/ct_a_view_idea.bix?c=C0145061-7AA8-4876-9503-932E07B3CB16&idea_id=8221D01A...

Avatar

Correct answer by
Employee

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

Avatar

Level 2

Thanks for the quick response i will look at it.

Avatar

Level 8

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