cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject repeater calls row-path method n+1 times
Date Fri, 24 Sep 2004 13:25:53 GMT
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
<fb:repeater id="myrepeater" parent-path="." row-path="smallbeans">

formbean.java has getSmallbeans() and setSmallbeans().

When loading this repeater, getSmallbeans() gets called n+1 times, where 
n is the number of elements in the collection. Now lets say that the 
repeater is populated from a fairly heave database query that returns 
around 100 entries - you get the picture :)

Is this a normal repeater feature? Shouldn't it be enough for the 
repeater to call the method only once as it returns the whole collection 
anyway?


Thoughts?
Jorg Heymans


Mime
View raw message