cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@apache.org>
Subject Re: [RT] Flowmaps
Date Mon, 24 Jun 2002 18:18:33 GMT
On 6/23/02 2:09 PM, "Sylvain Wallez" <sylvain.wallez@anyware-tech.com>
wrote:

> Christian Haul wrote:
>> Ovidiu, Sylvain,
>> 
>> I spend some time to look into both treeprocessor and flow. In order
>> to achieve the above and input modules in sitemap I would need two
>> things:
>> 
>> a) reference to the sitemap's component manager in flow. I have found
>> two possibilities, either extending some routines' signatures (many
>> modifications) or placing it into the Environment. But I seem not to
>> find the place where it   is created. It seems related to
>> CocoonComponentManager.getCurrentEnvironment() but  I didn't quite
>> understand the mechanics.
> 
> 
> Look at o.a.c.components.flow.JavaScript.JSCocoon, which makes some
> Cocoon objects available to the flow : it already has a ComponentManager
> attribute, but doesn't publish it to the script. This should be a simple
> matter of adding a jsGet_manager method (Ovidiu, am I right ?).

Yes, adding such a method should work.

For an introduction on how to make objects and classes available to
JavaScript, check out this tutorial:

http://www.mozilla.org/rhino/tutorial.html

Regards,
Ovidiu


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message