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"> > <firstname>Lucien</firstname> > <phones> > <phone id="1" nr="+32-2-2222222"/> > <phone id="2" nr="+32-2-2222221"/> > </phones> > </contact> > <contact id="2"> > <firstname>Joris</firstname> > <phones> > <phone id="3" nr="+32-2-2222223"/> > <phone id="4" nr="+32-2-2222224"/> > </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 ?
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> * <wb:simple-repeater * id="contacts" * parent-path="contacts"> * <<em>... child bindings ...</em> * </wb:simple-repeater> * </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]