implement your own List interface
Just in case if anyone not aware of, you only need to implement the size()
and get(int index) methods of the List interface, everything else can just
be unsupported.
On Mon, Jun 23, 2008 at 2:21 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
well, thats part of
Hi,
I a currently a bit stuck in dealing with a PageableListView and a detachable
model. I have build my own model that wraps a list of search results that should
exists as long as the page remains the same, i.e. across all requests that go
to the same page such as for navigation or sort
detach() is indeed called in the end of every request.
what exactly is your requirement? you want to run the query once, upon
page entry, and then always reuse the same resultset without doing
another query? in that case store the list of ids in your resultset as
a property of the page. the model
Hi Igor,
thanks for your reply.
Igor Vaynberg wrote:
detach() is indeed called in the end of every request.
what exactly is your requirement? you want to run the query once, upon
page entry, and then always reuse the same resultset without doing
another query?
This is indeed what I would
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
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
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
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