well, thats part of the problem with listview :)

see idataprovider and dataview

if you do want to use listview then you have to implement your own
List interface that loads windows of data at a time depending on which
get(index) is used.

-igor

On Mon, Jun 23, 2008 at 2:16 PM, Jürgen Lind <[EMAIL PROTECTED]> wrote:
> Ok, but since I pass the model into the constructor of the listview, how
> is the model informed which part of the data to load? Is there a method
> that I have been missing?
>
> J.
>
> Igor Vaynberg wrote:
>>
>> the model can be aware that it is used by the listview. the separation
>> here is that the listview is unaware of where or how its list is
>> built.
>>
>> for database stuff i prefer using dataview, it has database semantics
>> more closely built into it.
>>
>> -igor
>>
>> On Mon, Jun 23, 2008 at 1:55 PM, Jürgen Lind <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi,
>>>
>>> I am still a bit confused about one thing in the remark below: how can
>>> the model of the list view return the required items? Should not the
>>> model
>>> be unaware that it is used by a list view?
>>>
>>> J.
>>>
>>>>> in that case store the list of ids in your resultset as
>>>>> a property of the page. the model of the listview can then retrieve
>>>>> the subset of this list (based on the current page and number of items
>>>>> needed) and do a select from foo where id in ( subset of id list )
>>>>> query to retrieve the current window of data.
>>>
>>> --
>>> Dr. Jürgen Lind
>>> iteratec GmbH                Fon: +49 (0)89 614551-44
>>> Inselkammerstrasse 4         Fax: +49 (0)89 614551-10
>>> 82008 Unterhaching           Web: www.iteratec.de
>>>
>>> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
>>> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> --
> Mit freundlichen Grüßen,
>
> Jürgen Lind
>
> --
> Dr. Jürgen Lind
> iteratec GmbH                Fon: +49 (0)89 614551-44
> Inselkammerstrasse 4         Fax: +49 (0)89 614551-10
> 82008 Unterhaching           Web: www.iteratec.de
>
> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to