You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Manuel Ottaviano <co...@lst.tfo.upm.es> on 2006/09/19 17:52:07 UTC
CFORM XML bind only works with file resource. Cocoon 2.19
*Hello cocoon world.
I'm using the 2.19 version of Cocoon. I'm developing some CFROM using
the example included in the framework.
I'm using the example "samples/blocks/forms/form2simpleXML.flow" as
starting point.
The example works fine with a binding file , but if I substitute the
file with a cocoon resource as follow:*
<map:match pattern="form2simpleXML.flow">
<map:call function="handleForm">
<map:parameter name="function" value="form2simpleXML"/>
<map:parameter name="definitionURI" value="forms/form2_model.xml"/>
<!-- <map:parameter name="documentURI"
value="forms/form2_simple_data.xml"/> -->
<map:parameter name="documentURI"
value="cocoon:/forms/form2_simple_data.xml"/>
</map:call>
</map:match>
<map:match pattern="forms/form2_simple_data.xml">
<map:generate src="forms/form2_simple_data.xml"/>
<map:serialize type="xml" />
</map:match>
*Cocoon generates an error : *
org.mozilla.javascript.EvaluatorException:
"resource://org/apache/cocoon/forms/flow/javascript/Form.js", line 285:
The choice of Java method
org.apache.cocoon.components.source.SourceUtil.toSAX matching JavaScript
argument types
(org.apache.cocoon.components.source.impl.SitemapSource,org.apache.cocoon.forms.util.XMLAdapter)
is ambiguous; candidate methods are: void
toSAX(org.apache.excalibur.source.Source,org.xml.sax.ContentHandler),
void
toSAX(org.apache.excalibur.xml.sax.XMLizable,org.xml.sax.ContentHandler)
*Looking in the web I've found the same bug of the current development
version of Cocoon. The article is below:*
http://issues.apache.org/jira/browse/COCOON-1906
*I've patched my verson of cocoon but it does not solve the problem.....
Why??*
thanks 4 the attention
manuel ottaviano