thanks,
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?
-------------------------------
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:
The problem occur when i try to insert new row
I receive this error on:
form.save(Elenco);
java.lang.NoSuchMethodException:
org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist)
in my binding definition I have this:
<fb:on-insert-row>
<fb:insert-bean classname="w4b.com.cassagest.db.Docuassist"
addmethod="add"/>
</fb:on-insert-row>
How Can I add object to a Collection from OJB?
This (forget about the jdo stuff):
http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php
should get you started, you can specify a method in the binding.
HTH
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]