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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]