You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by i ii <kh...@hotmail.com> on 2008/04/03 14:46:51 UTC
should DataView.setItemsPerPage(int items) be in IDataProvider?
when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
Posted by Igor Vaynberg <ig...@gmail.com>.
what is that have to do with dataprovider? i think you are doing
something very strange. maybe you should subclass the dataview instead
of dataprovider
-igor
On Thu, Apr 3, 2008 at 5:22 PM, i ii <kh...@hotmail.com> wrote:
>
> i need update method to know how many items updated out of how many items shown on page
>
> > Date: Thu, 3 Apr 2008 10:02:18 -0700
> > From: igor.vaynberg@gmail.com
>
>
> > To: users@wicket.apache.org
> > Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
> >
> > whats the usecase there?
> >
> > -igor
> >
> > On Thu, Apr 3, 2008 at 6:29 AM, i ii <kh...@hotmail.com> wrote:
> > >
> > > but what if items per page is needed not in iterator?
> > >
> > > > Date: Thu, 3 Apr 2008 15:08:27 +0200
> > > > From: martijn.dashorst@gmail.com
> > > > To: users@wicket.apache.org
> > > > Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
> > >
> > >
> > > >
> > > > iterator(int start, int count)
> > > >
> > > > the count parameter is the items per page.
> > > >
> > > > Martijn
> > > >
> > > > On 4/3/08, i ii <kh...@hotmail.com> wrote:
> > > > >
> > > > > when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
> > > > >
> > > >
> > > >
> > > > --
> > > > Buy Wicket in Action: http://manning.com/dashorst
> > > > Apache Wicket 1.3.2 is released
> > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: should DataView.setItemsPerPage(int items) be in IDataProvider?
Posted by i ii <kh...@hotmail.com>.
i need update method to know how many items updated out of how many items shown on page
> Date: Thu, 3 Apr 2008 10:02:18 -0700
> From: igor.vaynberg@gmail.com
> To: users@wicket.apache.org
> Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
>
> whats the usecase there?
>
> -igor
>
> On Thu, Apr 3, 2008 at 6:29 AM, i ii <kh...@hotmail.com> wrote:
> >
> > but what if items per page is needed not in iterator?
> >
> > > Date: Thu, 3 Apr 2008 15:08:27 +0200
> > > From: martijn.dashorst@gmail.com
> > > To: users@wicket.apache.org
> > > Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
> >
> >
> > >
> > > iterator(int start, int count)
> > >
> > > the count parameter is the items per page.
> > >
> > > Martijn
> > >
> > > On 4/3/08, i ii <kh...@hotmail.com> wrote:
> > > >
> > > > when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
> > > >
> > >
> > >
> > > --
> > > Buy Wicket in Action: http://manning.com/dashorst
> > > Apache Wicket 1.3.2 is released
> > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
Posted by Igor Vaynberg <ig...@gmail.com>.
whats the usecase there?
-igor
On Thu, Apr 3, 2008 at 6:29 AM, i ii <kh...@hotmail.com> wrote:
>
> but what if items per page is needed not in iterator?
>
> > Date: Thu, 3 Apr 2008 15:08:27 +0200
> > From: martijn.dashorst@gmail.com
> > To: users@wicket.apache.org
> > Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
>
>
> >
> > iterator(int start, int count)
> >
> > the count parameter is the items per page.
> >
> > Martijn
> >
> > On 4/3/08, i ii <kh...@hotmail.com> wrote:
> > >
> > > when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.2 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: should DataView.setItemsPerPage(int items) be in IDataProvider?
Posted by i ii <kh...@hotmail.com>.
but what if items per page is needed not in iterator?
> Date: Thu, 3 Apr 2008 15:08:27 +0200
> From: martijn.dashorst@gmail.com
> To: users@wicket.apache.org
> Subject: Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
>
> iterator(int start, int count)
>
> the count parameter is the items per page.
>
> Martijn
>
> On 4/3/08, i ii <kh...@hotmail.com> wrote:
> >
> > when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.2 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: should DataView.setItemsPerPage(int items) be in IDataProvider?
Posted by Martijn Dashorst <ma...@gmail.com>.
iterator(int start, int count)
the count parameter is the items per page.
Martijn
On 4/3/08, i ii <kh...@hotmail.com> wrote:
>
> when i need to get items per page in data provider i cannot unless i have data view. should this method be in data provider and not data view? the data provider is providing data and items per page is data, no?
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org