Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-21 Thread Johan Compagner
ion. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Saturday, August 20, 2005 12:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems I am a bit of track now. Plea

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Christian Essl
TECTED] On Behalf Of Christian Essl Sent: Saturday, August 20, 2005 12:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems I am a bit of track now. Please help me getting back. My question is who finds the real last page? The

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Johan Compagner
EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Saturday, August 20, 2005 12:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems I am a bit of track now. Please help me getting back. My question is who finds the real last page? The one wh

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Gili
2005 12:33 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Right, but from a error-prevention point of view, if I provided a user with a link to "next page" and he clicks on it and sees the same page a second time, that

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
currentpage=page; > > } > > > > This handles the out of bounds quietly instead of always throwing an > > exception. > > > > -Igor > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAI

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Gili
et-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems I am a bit of track now. Please help me getting back. My question is who finds the real last page? The one who calls setCurrentPage() (the navigator) or the one who implements setCurrentPag

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
eforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > I am a bit of track now. Please help me getting back. My > question is who finds the real last page? The one who calls > setCurrentPage() (the > navigator) or the one who implements setCurre

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Christian Essl
On Behalf Of Johan Compagner Sent: Friday, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems > >> Alternatively we should make an PageableOrderedRepeatingView. >> > > I want to wait for the

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Christian Essl
pageable. So >>> something like irangepageable { getrowsperpage() setrowsperpage() >>> getmaxrows() }But that's just me. >>> >>> Btw whats getmaxrows() is that getrowcount()? >>> >>> I don't see why the listview cannot have setrowsperpage

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Saturday, August 20, 2005 10:37 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > I

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Gili
nyways which defaults to showing everything until used. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider s

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Gili
ults to showing everything until used. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex proble

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
nt: Saturday, August 20, 2005 2:41 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > Oh yes you are right. I did not think of that the currentPage > does not get listed anymore. Maybe change the > IPagea

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Christian Essl
:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems > >> Alternatively we should make an PageableOrderedRepeatingView. >> > > I want

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-19 Thread Johan Compagner
] On Behalf Of Johan Compagner Sent: Friday, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems > >> Alternatively we should make an PageableOrderedRepeatingView. >> > > I want to wait for the

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-19 Thread Christian Essl
y, August 19, 2005 2:29 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems > >> Alternatively we should make an PageableOrderedRepeatingView. >> > > I want to wait for the new navigation to be done so we don't

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-19 Thread Igor Vaynberg
2:29 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > > > >> Alternatively we should make an PageableOrderedRepeatingView. > >> > > > > I want to wait for the new navigat

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-19 Thread Johan Compagner
Alternatively we should make an PageableOrderedRepeatingView. I want to wait for the new navigation to be done so we don't need to have the regular - pageable pairs. I am currently inclined to keep this difference. Because now i have IPageable { getCurrentPage(); setCurre

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
> You are right. A lot is still poiler-plate code. Why not make > a component out of it with a method populateDataItem(DataItem > di, int col, int row), which calls di with null when there > are no Objects in the model anymore or has an additional > method with populateEmptyDataItem(DataItem d

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Christian Essl
ED] On Behalf Of Igor Vaynberg Sent: Wednesday, August 17, 2005 11:14 AM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems I would disagree with everything except 1. (2) wont work because cells might create different hierarchies of compo

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Gili
ECTED] On Behalf Of Gili Sent: Wednesday, August 17, 2005 10:41 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Ok, I give up :( I tried simplifying everything by creating a GridDataView that is a DataView that is exp

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
k you are trying to create a component that is very > specific to > > your needs as opposed to creating a more general one and > adopting it. > > > > -Igor > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > >>

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
I just checked in a very small example on how to build a simple grid. It is in no way complete as it is not a component and it misses some basic functionality such as adding a   to the last row if there arent enough items in the dataprovider. But what it does demonstrate is that it is VERY EASY to

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
I just checked in a very small example on how to build a simple grid. It is in no way complete as it is not a component and it misses some basic functionality such as adding a   to the last row if there arent enough items in the dataprovider. But what it does demonstrate is that it is VERY EASY to

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Gili
[mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Wednesday, August 17, 2005 10:41 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Ok, I give up :( I tried simplifying everything by creating a GridDataView that i

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
> Sent: Wednesday, August 17, 2005 11:14 AM > To: wicket-user@lists.sourceforge.net > Subject: RE: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > I would disagree with everything except 1. > > (2) wont work because cells might create different > hi

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
; [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Wednesday, August 17, 2005 10:41 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Ok, I give up :( > > I tried simplifying ever

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Christian Essl
e- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Wednesday, August 17, 2005 1:34 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems > In fact the add() function in the dataview should pro

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Gili
Ok, I give up :( I tried simplifying everything by creating a GridDataView that is a DataView that is explicitly aware of columns and rows but this is taking up way too much of my time and I'm getting stuck way too often. Some points: 1) We need a component which consists o

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
t; To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > In fact the add() function in the dataview should probably throw an > > unsupported operation exception. > > Or just add to the

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Christian Essl
In fact the add() function in the dataview should probably throw an unsupported operation exception. Or just add to the current data-item if present. Christian ___ Gesendet von Yahoo! Mail - Jetzt mi

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Phil Kulak
e to the MyListView passed > >>into the constructor. populateItem() will be passed a > >>DataItem for both row and column. > >> > >> See what I mean? It's very flexible in that you can > >>nested multiple layers but at the same time the overall state >

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
gt; Igor Vaynberg > Sent: Tuesday, August 16, 2005 11:41 PM > To: wicket-user@lists.sourceforge.net > Subject: RE: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > There is no magic in add(). imageRow.add(imageCell) wont work > because it needs to be added to the

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
rom: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 11:25 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > I've almost got my prototy

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
i Sent: Tuesday, August 16, 2005 10:36 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems I said I disliked the idea of outputting HTML from Java code because this is very much like plain servlets or JSP, both of which are noto

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
at you want. Why don't you try it and tell us if it works. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 10:36 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wick

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg04192.html -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 10:10 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider s

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
uesday, August 16, 2005 10:10 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Where do I find the renderer Java class? > > Gili > > Igor Vaynberg wrote: > > This would be re

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 10:02 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Ok, turns out that using DataView is no good :( The markup contains

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
16, 2005 10:02 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Ok, turns out that using DataView is no good :( > > The markup contains: > >

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
Ok, turns out that using DataView is no good :( The markup contains: cell data and I only want to issue a "imageRow" once every X columns. The problem, I just realized, is that the imageRow tag wraps a single imag

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
Right, I think I prefer this method now. I think what is really missing in the end is the documentation aspect, not Javadoc but a full-fledged Wiki example for how to use it to produce rows and columns. Time-allowing, I'll try posting something to that effect in the near future. In respons

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
> The benefit of this approach is extra flexibility so it is > possible to implement tables where the first row contains one > cell (i.e. the title) then the next couple of rows contain > four cells (adding up some items) and then the final row > contains two cells ("total=", "some value"). Thi

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 4:05 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems The current mechanism works, but it is not elegant. I really don't und

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
eforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > The current mechanism works, but it is not elegant. I > really don't understand what impedence mismatch you're > talking about though. We take the flat list and

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 3:47 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Why can't we just do this? cell

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Christian Essl
005 3:23 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Looks bad :) We should have external markup files (i.e. *.html) instead of doing this the old servlet/JSP way of manually writing out HTML. Gili Igor Vay

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
t; view.getResponse().write(""); > >>> } > >>> beginCell(GridView view) { > >>> view.getResponse().write(""); > >>> } > >>> ... > >>>} > >>> > >>>Mmm

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
Behalf Of Gili Sent: Tuesday, August 16, 2005 3:23 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Looks bad :) We should have external markup files (i.e. *.html) instead of doing this the old servlet/JSP way of manual

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
rom: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 3:23 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Looks bad :) > >

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Christian Essl
an have an excelrenderer or a csvrenderer, etc.. Almost like an exporter. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 2:36 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Re:

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
r, etc.. Almost like an exporter. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Tuesday, August 16, 2005 2:36 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Christian Essl
rom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, August 16, 2005 2:00 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems How about this idea: We have a gridview extends dataview. A gridview tak

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
st 16, 2005 2:36 PM > To: wicket-user@lists.sourceforge.net > Subject: RE: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Looks ok I think although I'm not too familiar with > this whole concept of a seperate renderer. I'd have to try it

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
Looks ok I think although I'm not too familiar with this whole concept of a seperate renderer. I'd have to try it to see what I think :) Gili How about this idea: We have a gridview extends dataview. A gridview takes a render interface that it uses to render the grid (instead of body markup

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
> -Igor > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > > Sent: Tuesday, August 16, 2005 1:40 PM > > To: wicket-user@lists.sourceforge.net > > Subject: RE: [Wicket-user] Re: ColumnedDataP

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
> To: wicket-user@lists.sourceforge.net > Subject: RE: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > I told you I didn't like it :) The whole process should > be smoother, > > why cant the internal view simply get the iterator from the > external &

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Christian Essl
taview you should use setfirstindex(). -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Tuesday, August 16, 2005 11:32 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems Are we e

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
I told you I didn't like it :) The whole process should be smoother, why cant the internal view simply get the iterator from the external view and use that. Why have a whole other wrapper/provider to implement. What is this offset? When using pageddataview you should use the page number to offs

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
ffset, when using a normal dataview you should use setfirstindex(). -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Phil Kulak > Sent: Tuesday, August 16, 2005 11:32 AM > To: wicket-user@lists.sourceforge.net > Sub

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Phil Kulak
Are we even sure we want this functionality in the dataprovider? I wrote that class to get people's reactions to the concept, but I don't think I got any feedback. I'm not sure that's where the functionality belongs, but you can't just subclass the whole heirarchy either. On 8/16/05, Gili <[EMAIL