the default IPageable has just those things.
That is working,

I want to extend that interface to IRangePagable

and with that we have 2 choices

do we have setRowPerPages()
or getRowPerPages()

So are we going to push it (so that the navigator should be configured)
or do we get it so that PageableListView must be configured.

I think i will go for the last.

johan


Christian Essl wrote:
Thanks,

I can not realy help you. I just browsed the discussion and I am not sure how the interface should look like:

Is it:
 getCurrentPage()
 setCurrentPage(int)
 getPageCount()

or should there be more in it?

For example the setNumberOfRows on a PageableListView or ListView (if we combine them) who is calling that. Are we going to push it through a Navigator or are users want to set them directly on the listview...

As far as I understand the paging should be general useable and than ie a wizard has just one 'row' per page. So I think it realy depends on the component which shows the rows and therefore the numberOfRows should be set there, if it makes sense at all.

As said I know too little about it and certainly do not want to open this discussion again.

Christian


On Tue, 16 Aug 2005 11:10:02 +0200, Johan Compagner <[EMAIL PROTECTED]> wrote:

it's fine.
I do have a first impl now but i am still not totally convinced what we should do



johan


Christian Essl wrote:
Hi Johan,
Thank you. I did not want to press you so.
Sorry for sending this now. I wanted to send it last Friday but accidentially kept it in my out box and didn't think of it anymore when I sent the box. I do realy not want to press you.

Sorry,
Christian


On Fri, 12 Aug 2005 20:32:44 +0200, Johan Compagner <[EMAIL PROTECTED]> wrote:

i will start first impl this weekend

Christian Essl wrote:
Oh yes. This should be before 1.1 and idea?

On Fri, 12 Aug 2005 10:48:47 -0700, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

Hopefully when the new paging impl is done there wont be a need for
Pageable-pairs :)

-Igor


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Essl
Sent: Friday, August 12, 2005 10:37 AM
To: [email protected]
Subject: Re: [Wicket-user] PageableDataView and column cells

Wow, that's a good one. I guess there are also others who
need it and facing the implementation (I couldn't have done
it this way) I think there is a need.

I was acutally thinking along the lines of implementing a
PageableOrderedRepeatingView and than nest another
OrderedRepeatingView.

What about having a default PageableOrderedRepeatingView -
glad there is autocompletition - which has a method
internalOnBeginRequest(int page, int startIndex, int size),
so you could do the above and maybe other things more easy by
hand. I don't have a real use-case - just a thought.

Christian

On Fri, 12 Aug 2005 09:08:25 -0700, Igor Vaynberg
<[EMAIL PROTECTED]>
wrote:

> Here is the quick and dirty solution. Is there enough interest to
> build a full blown grid component?
>
>         final int cols=7;
>         final int rowsPerPage=5;
>         add(new PageableDataView("grid", new
ContactDataProvider(),
> cols*rowsPerPage) {
> > protected void populateItem(final DataItem item)
>             {
>                 Contact
> contact=(Contact)item.getModelObject();
>                 item.add(new Label("cell",
> contact.getFirstName()+" "+contact.getLastName()));
>             }
> > protected void renderItem(Component item)
>             {
>                     DataItem di=(DataItem)item;
> > if (di.getIndex()%cols==0)
> getResponse().write("<tr>");
>                     super.renderItem(item);
>                    >                     if
(di.getIndex()+1==getItemCount()) {
>                         if
(getItemCount()%cols!=0)
> {
>                             int
> needed=cols*((getItemCount()/cols)+1)-getItemCount();
> > getResponse().write("<td colspan=\""+needed+"\">&nbsp;</td>");
>                         }
>                     }
> > > if ((di.getIndex()+1)%cols==0)
> getResponse().write("</tr>");
>             }
>            >         });
>
> ---------------
>
> <table cellspacing="0" class="dataview" border="1">
>     <span wicket:id="grid">
>         <td><span wicket:id="cell">[cell]</span></td>
>     </span>
> </table>
>
>
> -Igor
>
>
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Gili
>> Sent: Friday, August 12, 2005 7:44 AM
>> To: [EMAIL PROTECTED]
>> Subject: [Wicket-user] PageableDataView and column cells
>>
>> Hi,
>>
>>     I'm trying to display a grid of images, for example 4
columns and 3
>> rows of images, where each "cell" is a different entry
retrieved from
>> the database with a different index/id.
>>
>> I took a look at the DisplayTag example and PageableDataView's
>> source-code and they don't seem to be quite appropriate
for handling
>> my use-case. In a nutshell, PageableDataView only has a concept of
>> rows, where the
>> populateItem(ListView) method allows one to add()
different views of
>> the same database row. So for example, a given row will
have an id,
>> name, description, etc...
>>
>>     What I need is multiple columns per visual row where
each column is
>> a distinct DB item, with a distinct ID.
>> PageableDataView only increments the index outside the scope of
>> populateItem() so I'm not sure it's possible to implement using it.
>>
>>     My gut feeling is that maybe I can use PageableDataView
with CSS
>> somehow to emulate columns but i would be much nicer if I
just had a
>> component that had the concept of columns in the first place.
>>
>>     What do you think?
>>
>> Thank you,
>> Gili
>> --
>> http://www.desktopbeautifier.com/
>>
>>
>> -------------------------------------------------------
>> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
>> Practices Agile & Plan-Driven Development * Managing
Projects & Teams
>> * Testing & QA Security * Process Improvement & Measurement *
>> http://www.sqe.com/bsce5sf
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>
>
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices Agile & Plan-Driven Development * Managing
Projects & Teams
> * Testing & QA Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user



-- Christian Essl

___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos -
Hier anmelden: http://mail.yahoo.de



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user







-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user








-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to