cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <chri...@yahoo.com>
Subject fb:insert-bean on hibernate pojo
Date Mon, 30 Jan 2006 09:24:26 GMT


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


Mime
View raw message