I would want simply to work directly on one table with a repeater. The
table does not have to be connected to a father like in all the examples
of the repeater.
Hour I succeed to modify the table, but I do not succeed to add lines.
The problem is in binding.
I pass an ArrayList to a binding, when I invoke "add" method on insert row
error:
java.lang.NoSuchMethodException:
com.sun.jdori.common.sco.ArrayList.add(w4b.com.cassagest.db.Docuassist)
Thanks in advance,
This my simple binding,
<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" path=".">
<fb:repeater id="Docuassist" parent-path="." row-path=".">
<fb:identity>
<fb:value id="dgprogre" path="@dgprogre"/>
</fb:identity>
<fb:on-bind>
<fb:value id="dgdescri" path="dgdescri"/>
<fb:value id="dgdescre" path="dgdescre"/>
</fb:on-bind>
<fb:unique-row>
<fb:unique-field id="dgprogre" path="@dgprogre"/>
</fb:unique-row>
<fb:on-insert-row>
<fb:custom>
</fb:custom>
<fb:insert-bean classname="w4b.com.cassagest.db.Docuassist"
addmethod="add"/>
</fb:on-insert-row>
</fb:repeater>
</fb:context>
-------------------------------
Alessandro Vincelli
W4B - web for business s.r.l.
Firenze
via Pellicceria 10 - 50123
E-mail: [EMAIL PROTECTED]
tel: 055-2654270
Christoph Hermann ha scritto:
Alessandro Vincelli schrieb:
Hi,
But the situation if different from the example.
I have form-repeater similar to exaple in the link, and work fine.
In this situation I try to add Bean directly to a collection from OJB.
The collection is returned from OJB.
org.apache.ojb.broker.util.collections.RemovalAwareCollection
The RemovalAwareCollection has
RemovalAwareCollection.add(java.lang.Object)
RemovalAwareCollection.ojbAdd(java.lang.Object)
and in bind I use this method
<fb:on-insert-row>
<fb:insert-bean classname="w4b.com.cassagest.db.Docuassist"
addmethod="add"/>
</fb:on-insert-row>
But I have this problem:
java.lang.NoSuchMethodException:
org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist)
Any idea?
If nothing else works, you can add it yourself in some javascript
snippet in the corresponding event javascript-section.
Sorry, i don't know where your problem comes from.
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]