cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject Forms problem: repeater and adding rows
Date Thu, 30 Jun 2005 13:45:31 GMT
Hi,

in binding file when using beans adding is bind like this:

    <fb:on-insert-row>
       <fb:insert-bean classname="my.nice.Item" addmethod="addItem"/>
    </fb:on-insert-row>

but can that be written in javascript for flow or should I just  
modify the bean to setup files correctly on addItem command? Like:
<fb:on-insert-row>
  <javascript>
    var bean = new Bean();
    bean.setValue("foo");
    return bean;
  </javascript>
</fb:on-insert-row>

and then when adding new row value would always be "foo".

Basic problem is this: I need to setup default values for the item.

Thanks, Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message