You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chris <ch...@yahoo.com> on 2006/01/30 10:24:26 UTC
fb:insert-bean on hibernate pojo
I see this example in supersonic tour bean editor
repeater binding:
<fb:on-insert-row>
<fb:insert-bean
classname="org.apache.cocoon.samples.tour.beans.TaskCommentBean"
addmethod="addComment"/>
</fb:on-insert-row>
The parent beans add method is called to insert a new child row.
What if there is no 'addChild' method available such as in one-to-many
sets generated in pojo's by hbm2java for hibernate. In this case the
parent has a: public Set getChildren() and you normally do:
parent.getChildren().add(newChild);
Is there a way to do some kind of <fb:javascript/>
inside the <fb:on-insert-row> to do a custom
addmethod? I would prefer to
use the hbm2java objects as is,
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org