cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject forms + binding in repeater + bean + String[] type
Date Fri, 09 Sep 2005 08:01:33 GMT
Hi,

I have bean like this:

class Bean {
  private Collection foo = new ArrayList();

  public addItem (String[] item) {
  ths.foo.add(foo);
  }

  public getFoo() {..}
  ..
}

in binding file, is iti possible to bind to that datatype, or do I  
have to use some wrrapper class?

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

     <fb:on-bind>
       <fb:value id="value1" path="String[1] direction="load"/>
       <fb:value id="value2" path="String[2]"/>
    </fb:on-bind>


?

- 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