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/18 11:58:09 UTC
cocoon 2.19 : simple-xml binding does not work with non file sources
Good morning cocoon word,
I've a problems with the form block.
I want to use the binding capabilities starting using the example
called at direction: "samples/blocks/forms/form2simpleXML.flow"
If I use as bind reference a cocoon resource this does not work proprerly
This works fine but if I put as URIdocument a pipeline process as folllow
<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>
Calling this pipeline cocoon generates this 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)
I've found the same bug report at this link , but onl,y for the version
2.2 in development
here the issue:
http://issues.apache.org/jira/browse/COCOON-1906
How I can resolve this problem ?I try to use this patch but it seems to
not work properly in my cocoon
Thanks very much
manuel ottaviano
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org