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

2005-08-21 Thread Johan Compagner
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

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

2005-08-20 Thread Johan Compagner
, 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 need to have the regular - pageable pairs. I

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

2005-08-20 Thread Christian Essl
, 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 need to have the regular - pageable

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

2005-08-20 Thread Igor Vaynberg
: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 IPageable.setCurrentPage() to setWantedPage(). IMO

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

2005-08-20 Thread Gili
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 problems Alternatively we should

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

2005-08-20 Thread Gili
. -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 problems Alternatively we should make

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 disagree. If a user specifies

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

2005-08-20 Thread Christian Essl
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 new navigation to be done so we don't need

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

2005-08-20 Thread Christian Essl
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 need to have the regular - pageable pairs. I am

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

2005-08-20 Thread Igor Vaynberg
] 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 setCurrentPage() (the pageable component). To me it currently

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

2005-08-20 Thread Gili
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 problems Alternatively we should make

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

2005-08-20 Thread Igor Vaynberg
, 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 who calls setCurrentPage() (the navigator

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

2005-08-20 Thread Gili
@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 looks like a bug to him (and to me too). From

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

2005-08-20 Thread Johan Compagner
, 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 who calls setCurrentPage() (the navigator) or the one who

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

2005-08-20 Thread Christian Essl
: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 who calls setCurrentPage() (the navigator) or the one who implements

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();

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

2005-08-19 Thread Christian Essl
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 need to have the regular - pageable pairs. I am currently

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

2005-08-18 Thread Igor Vaynberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

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 td colspan=xnbsp;/td to the last row if there arent enough items in the dataprovider. But what it does demonstrate is

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

2005-08-18 Thread Igor Vaynberg
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 explicitly aware of columns and rows

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

2005-08-18 Thread Gili
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 explicitly aware of columns and rows but this is taking up way too

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

2005-08-18 Thread Christian Essl
[firstname]/span/td /tr /table -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

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 di,

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

2005-08-17 Thread Gili
Sent: Tuesday, August 16, 2005 10:36 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems sigh 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

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

2005-08-17 Thread Igor Vaynberg
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 prototype ready for testing but I'm having a initialization

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

2005-08-17 Thread Igor Vaynberg
: 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 dataitem, that's what populateItem

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

2005-08-17 Thread Phil Kulak
: [Wicket-user] Re: ColumnedDataProvider startIndex problems sigh 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 notoriously ugly doing this. Well anyway, if this component is fully theoretical, I guess I

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

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

2005-08-17 Thread Igor Vaynberg
@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 current data-item if present. Christian

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

2005-08-17 Thread Igor Vaynberg
:[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

[Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Gili
On second thought... Instead of me adding this functionality into ColumnedDataProvider can we add a IDataProvider wrapper that provides this functionality? So I'd have the original IDataProvider, wrapped by the offset-producing-IDataProvider, then the ColumnedDataProvider. Or is

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

2005-08-16 Thread Igor Vaynberg
, 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 Subject: Re: [Wicket-user] Re

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

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

2005-08-16 Thread Christian Essl
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 even sure we want

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

2005-08-16 Thread Igor Vaynberg
@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 view and use that. Why have a whole other wrapper/provider

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

2005-08-16 Thread Igor Vaynberg
, August 16, 2005 1:40 PM 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 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

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

2005-08-16 Thread Igor Vaynberg
@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 to see what I think :) Gili How about this idea: We have a gridview

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

2005-08-16 Thread Christian Essl
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 takes a render interface

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

2005-08-16 Thread Gili
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 Looks ok I think

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

2005-08-16 Thread Christian Essl
, 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 Looks

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

2005-08-16 Thread Igor Vaynberg
it :) -Igor -Original Message- From: [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 :) We

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

2005-08-16 Thread Gili
implement it until I need it :) -Igor -Original Message- From: [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

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

2005-08-16 Thread Igor Vaynberg
@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 Vaynberg wrote: Basically a table renderer

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

2005-08-16 Thread Christian Essl
] 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 :) We should have external markup files (i.e. *.html) instead of doing this the old servlet/JSP way

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

2005-08-16 Thread Gili
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? table wicket:id=grid cellspacing=0 cellpadding=2

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

2005-08-16 Thread Igor Vaynberg
: [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 divide it into columns and rows, much like we're already doing

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

2005-08-16 Thread Gili
] 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 understand what impedence mismatch you're talking about though

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

2005-08-16 Thread Gili
Ok, turns out that using DataView is no good :( The markup contains: div wicket:id=imageRow class=floatfix div class=imageColumn cell data /div /div and I only want to issue a imageRow once every X columns. The

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

2005-08-16 Thread Igor Vaynberg
:[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: div

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

2005-08-16 Thread Gili
div class=floatfix/ /div -Igor -Original Message- From: [EMAIL PROTECTED] [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

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

2005-08-16 Thread Igor Vaynberg
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: [Wicket-user] Re: ColumnedDataProvider startIndex problems sigh I said I