You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by blueboy6 <bl...@gmail.com> on 2010/02/15 23:26:19 UTC

Grid get objects from current page

Hi guys,

I have one problem and I'm not sure how to solve it, so here it goes.


I have large set of objects(markers) and I'm using grid to show them on the
page. I want to display that data in Map that is on same page, but only data
of objects that I can see in that moment in grid. 

So elementary I want to get objects or their ID's from grid from that page
that is currently active...(page 3 that is active in pager)


Any ideas, and any help is appreciated

Tnx
Bojan Cincur
-- 
View this message in context: http://old.nabble.com/Grid-get-objects-from-current-page-tp27601046p27601046.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Res: Grid get objects from current page

Posted by Everton Agner <ev...@yahoo.com.br>.
I had to do this and I tried to get the objects from the model using the getAvailableRows() and getRow() method... but it turned out that the model refers to all of them... So, it freaked out with Indexes.

My GridDataSource implementation had a List<Object> result object that refers to the objects loaded on the "prepare" method. So, I've just made a getter for it and it worked. :)

But, I don't really know if this turn out to be a workaround or not.



________________________________
De: blueboy6 <bl...@gmail.com>
Para: users@tapestry.apache.org
Enviadas: Segunda-feira, 15 de Fevereiro de 2010 20:26:19
Assunto: Grid get objects from current page


Hi guys,

I have one problem and I'm not sure how to solve it, so here it goes.


I have large set of objects(markers) and I'm using grid to show them on the
page. I want to display that data in Map that is on same page, but only data
of objects that I can see in that moment in grid. 

So elementary I want to get objects or their ID's from grid from that page
that is currently active...(page 3 that is active in pager)


Any ideas, and any help is appreciated

Tnx
Bojan Cincur
-- 
View this message in context: http://old.nabble.com/Grid-get-objects-from-current-page-tp27601046p27601046.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com