Re: [WOODY] binding xml of a multiple repeaters inclusion

2003-11-05 Thread Bruno Dumon
On Tue, 2003-11-04 at 23:29, Nicolas Maisonneuve wrote:
 hy ,
 - what the xml binding file for this data ?
  
 description
  
  info
email[EMAIL PROTECTED]/email
  /info
  
   contacts
 contact id=1
  firstnameLucien/firstname
phones
 phone id=1 nr=+32-2-222/
  phone id=2 nr=+32-2-221/
/phones
  /contact
 contact id=2
  firstnameJoris/firstname
phones
  phone id=3 nr=+32-2-223/
  phone id=4 nr=+32-2-224/
/phones
  /contact
   /contacts
  
 /description
  
 - in the binding repeater definition we must set :
 unique-row-id 
 unique-path 
 but when we dont have a id attribute , how do it ?

I'm a bit confused because in the above example there are id attributes.

Anyhow, the wb:repeater binding depends on an unique identification for
each row.

There is however another repeater binding implementation available (not
documented on the wiki), which works by removing and re-adding all rows,
and thus doesn't need an id.

Here's a copy-paste of the javadoc which should help you:

/**
 * A simple repeater binding that will replace (i.e. delete then re-add
all) its
 * content.
 * pre
 * lt;wb:simple-repeater
 *   id=contacts
 *   parent-path=contactsgt;
 *   lt;em... child bindings .../em
 * lt;/wb:simple-repeatergt;
 * /pre

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[WOODY] binding xml of a multiple repeaters inclusion

2003-11-04 Thread Nicolas Maisonneuve



hy ,
- what the xml binding file for this data 
?

description

info 
email[EMAIL PROTECTED]/email/info 
contacts contact 
id="1" 
firstnameLucien/firstname 
phones  phone id="1" 
nr="+32-2-222"/  phone 
id="2" nr="+32-2-221"/ 
/phones 
/contact contact 
id="2" 
firstnameJoris/firstname 
phones  phone id="3" 
nr="+32-2-223"/  phone 
id="4" nr="+32-2-224"/ 
/phones 
/contact 
/contacts/description

- in the binding repeater definition we must set 
:

unique-row-id 
unique-path 
but when we don"t have a id attribute , how do it ?

thanks 

nicolas maisonneuve


PS : Without the binding i tried to create 
aformwith this model of data (multiple repeater inclusion) and 
it's work !