Hi,
I've got a strange problem with repeater
binding. I'm doing the following:
this.binding.loadFormFromModel(form,
doc);
// no changes are made to the form
this.binding.saveFormToModel(form,
doc);
// no problem here (all values are
correctly bind back)
// save back doc to webservice
// ...
// still no changes are made to the
form
this.binding.saveFormToModel(form,
doc);
// the following error occurs:
InsertNodeJXPathBinding: done registered
factory for inserting node -- InsertNodeJXPathBinding [for nested template]
InsertNodeJXPathBinding$1: InsertNode
jxpath factory executed for index.0
Below you can find my binding defintion:
<?xml version="1.0"?>
<bnd:context path="/data"
xmlns:bnd="http://apache.org/cocoon/woody/binding/1.0"
lenient="true">
<bnd:context path="Set">
<bnd:repeater id="myrepeater"
parent-path="." row-path="node" unique-row-id="id"
unique-path="@id">
<bnd:on-bind>
<bnd:value
id="field1" path="field1"/>
<bnd:value
id="field2" path="field2" />
<bnd:value
id="field3" path="field3" />
</bnd:on-bind>
<bnd:on-delete-row>
<bnd:set-attribute
name="status" value="deleted" />
</bnd:on-delete-row>
<bnd:on-insert-row
>
<bnd:insert-node><todo/></bnd:insert-node>
<!-- filled in <todo/> since the on-insert-row should never be
triggered -->
</bnd:on-insert-row>
</bnd:repeater>
</bnd:context>
</bnd:context>
Regards,
Gunter D'Hondt
SOFICO NV Belgium.