cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: [flowscript] cocoon.load() to load non-javascript file?
Date Tue, 17 Jul 2007 11:51:54 GMT
Rice Yeh wrote:
> Hi,
>   In flowscript, cocoon.load() is used for loading a javascript. Is 
> there other way to load a source other than javascript? By studying the 
> source code, the source reslover is stored in javascript intrepreter but 
> not accessible to user's flow script. Given no modification to the 
> flowscript source code, is there a way to access the source resolver?

Usually you'd just look it up:

   var resolver = cocoon.getComponent(Packages.org.apache....SourceResolver.ROLE);


Vadim

Mime
View raw message