cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject cforms + binding to array
Date Fri, 19 Nov 2004 23:33:34 GMT
Hi,

I have a bean which has Collection items;

and then I have a String[] values = new String[3]; and then I have 
this.items.add(values);

but how in CForms can I bind to different index of the String-array?

   <fb:repeater id="items" parent-path="." row-path="items">
     <fb:identity>
       <fb:value id="id" path="[0]"/>
     </fb:identity>

     <fb:on-bind>
       <fb:value id="id" path="[0]"/>
       <fb:value id="name" path="[1]"/>
       <fb:value id="value" path="[2]"/>
    </fb:on-bind>
</fb:repeater>

Would that work? most likely not.. how could it be made to work or is 
it impossoble to bind to a index of an array?

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