It's obvious that Martijn doesn't have control of the web service and the guys providing it don't offer such functionality (a getRecordsCount method for instance) hence my suggestion...
Martijn, i think i've seen in this list ppl having implemented custom Pagers... perhaps searching the archives will show some suggestions On Thu, Jul 3, 2008 at 11:40 PM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Thu, 03 Jul 2008 16:35:05 -0300, Martijn Brinkers (List) > <[EMAIL PROTECTED]> escreveu: > >> I know about GridDataSource and have implemented that already. The >> problem I face is that I do not know how many rows the GridDataSource >> will return. I only know if there is more data the moment I request the >> data. >> >> Would it be possible to specify MAXINT rows, remove the pager and create >> my own pager that only contains a previous and next link? > > My approach is this: in the int getAvailableRows() method, I perform a query > that only returns the number of results, without returning actual data. > Then, in the prepare() method, I fetch the data. From here, Grid takes care > of the rest. > > Thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
