Igor,
You are cheating :) groupsiterator should take another iterator, not list
for the constructor. In this case implementation of findnext is not obvious
since you cannot rewind the original iterator.
Alex
On 2/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
thats easy. you have a list of
Hello,
I'm sorry if this subject was discussed before... if so please point me in
the right direction. Here is my problem:
I'm using IDataProvider interface from wicket extensions package to load set
of data from database. The data has the following format:
group1, field11, field12, field13,
you would use two repeaters, one inside the other
one for outputting group header and footer
and the other one inside that one to output the rows in between.
-igor
On 2/19/07, Alexei Sokolov [EMAIL PROTECTED] wrote:
Hello,
I'm sorry if this subject was discussed before... if so please
Igor,
In this case outer repeater will have to iterate over groups, and I don't
know how to iterate over groups. I can iterate over every record and I can
detect when there is a group boundary.
Alex
On 2/19/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
you would use two repeaters, one inside
thats easy. you have a list of rows that is primarily sorted on the group.
so just do something like this (rough pseudocode)
class groupsiterator implements iterator {
private final list rows;
private string group;
private int idx;
public groupsiterator(list rows) {
this.rows=rows;
alexei.sokolov wrote:
Hello,
I'm sorry if this subject was discussed before... if so please point me in
the right direction. Here is my problem:
I'm using IDataProvider interface from wicket extensions package to load
set
of data from database. The data has the following format: