cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: cocoon.context.getRealPath & cocoon 2.2
Date Thu, 31 Jan 2008 12:43:53 GMT
On 23.01.2008 08:56, anil wrote:

> Thanks for your replies. Is there any documentation or examples available
> regarding using the SourceResolver, ideally within flowscript. I can't seem
> to find any resources on this topic.

See Cocoon Forms flowscript [1, starting around line 330]:

Form.prototype.loadXML = function(uri) {
     var source = null;
     var resolver = null;

     try {
         resolver = 
cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE);
         source = resolver.resolveURI(uri);
         ...
     } finally {
         if (source != null) {
             resolver.release(source);
         }
         cocoon.releaseComponent(resolver);
     }
}

Joerg

[1] 
http://svn.apache.org/viewvc/cocoon/tags/cocoon-2.2/cocoon-forms-impl/cocoon-forms-impl-1.0.0-RC1/src/main/resources/org/apache/cocoon/forms/flow/javascript/Form.js?revision=580105&view=markup

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


Mime
View raw message