Re: repeater calls row-path method n+1 times

2004-09-24 Thread Jorg Heymans
Vadim Gritsenko wrote: Not to prevent you from tinkering with this code, but a side comment about "hooking up an O/R mapping". I don't think I'd be totally off mark if I were to say that any respectable O/R mapping will make sure that: * Any obj.get() will pull information from database only

Re: repeater calls row-path method n+1 times

2004-09-24 Thread Vadim Gritsenko
Jorg Heymans wrote: I took the form2bean.flow example that is under CForms Block Samples (link is called "Bean Binding") and enhanced Form2Bean.java with a bit of get/set logging. I changed the calling flowscript method (form2bean in binding_example.js) to add 4 Contacts instead of 1. Findings:

Re: repeater calls row-path method n+1 times

2004-09-24 Thread Jorg Heymans
I took the form2bean.flow example that is under CForms Block Samples (link is called "Bean Binding") and enhanced Form2Bean.java with a bit of get/set logging. I changed the calling flowscript method (form2bean in binding_example.js) to add 4 Contacts instead of 1. Findings: - getContacts() is

Re: repeater calls row-path method n+1 times

2004-09-24 Thread Jorg Heymans
PS: tested this against in 2.1.5 and 2.1 trunk, same behaviour. Jorg Heymans wrote: Hi, Bringing this over from user@ , this is just too unlogical for me. Say formbean has a Collection called "smallbeans" of "smallbean" objects and i want to have a repeater for this. then the binding looks like fo

repeater calls row-path method n+1 times

2004-09-24 Thread Jorg Heymans
Hi, Bringing this over from user@ , this is just too unlogical for me. Say formbean has a Collection called "smallbeans" of "smallbean" objects and i want to have a repeater for this. then the binding looks like formbean.java has getSmallbeans() and setSmallbeans(). When loading this repeater, get