[Wicket-user] DataView: fixed number of items per page

2007-05-10 Thread Bernatet Mathieu
Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty whereas setItemPerPage() method only defines a maximum number of items to be displayed. Any suggestions? - This SF.net email is

Re: [Wicket-user] DataView: fixed number of items per page

2007-05-10 Thread Bernatet Mathieu
I think I could use the IDataProvider.iterator(first, count) and always returns an iterator of which size is count. Any other suggestions? Mathieu 2007/5/10, Bernatet Mathieu [EMAIL PROTECTED]: Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty

Re: [Wicket-user] DataView: fixed number of items per page

2007-05-10 Thread Igor Vaynberg
that will work. or you can create your own dataview :) look at DataViewBase, its only a few lines of code, so you can create your own subclass of AbstractPageableView where setitemsperpage works like you want. -igor On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: I think I could use

Re: [Wicket-user] DataView: fixed number of items per page

2007-05-10 Thread Bernatet Mathieu
ok, I will take a look on it later Thanks Mathieu 2007/5/10, Igor Vaynberg [EMAIL PROTECTED]: that will work. or you can create your own dataview :) look at DataViewBase, its only a few lines of code, so you can create your own subclass of AbstractPageableView where setitemsperpage works like