cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko (JIRA)" <>
Subject [jira] Commented: (COCOON-1906) [PATCH] simple-xml binding does not work with non file sources
Date Tue, 26 Sep 2006 20:12:52 GMT
    [ ] 
Vadim Gritsenko commented on COCOON-1906:

See: (chapter 4).

Form.js can be modified to pick the right method. I think this is the same issue:

> [PATCH] simple-xml binding does not work with non file sources
> --------------------------------------------------------------
>                 Key: COCOON-1906
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms, * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Lars Trieloff
>         Attachments: cocoon-formsbinding-sample.patch, cocoon-formsbinding-sourceutil.patch
> The cocoon forms flowscript API comes with a helper method form.loadXML, that retrieves
data from an xml document. The current implementation however does not work with documents
that are referenced not as files, but as SitemapSources, e.g. via the cocoon:/ or xmldb://
pseudo-protocol. In this case the Rhino engine is unable to resolve the ambiguity between
two method signatures:
> org.mozilla.javascript.EvaluatorException: "resource://org/apache/cocoon/forms/flow/javascript/Form.js",
line 287: The choice of Java constructor toSAX matching JavaScript argument types (org.apache.cocoon.components.source.impl.SitemapSource,org.apache.cocoon.forms.util.XMLAdapter)
is ambiguous; candidate constructors are:
> void toSAX(org.apache.excalibur.xml.sax.XMLizable,org.xml.sax.ContentHandler)
> void toSAX(org.apache.excalibur.source.Source,org.xml.sax.ContentHandler)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message