-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As I see it, it boils down to one of two cases.

A) You somehow store the entire row objects - either in the session
(with the obvious drawbacks and limitations) or in hidden fields etc.
(with the obvious drawbacks and limitaitions). This should be
necessary only if there is no way to later reconstruct the objects on
the server. But you write of entities, so this there is probably no
need for this.

B) You store a string representation of the objects in the browser - a
ValueEncoder does the job. Since your entities do not have a common
interface, you probably need to encode the type of each entity as well
as its primary key in the string, and use this type information to
decide how to retrieve this particular object.

Hope this helps

- - Arno



Am 07.05.2012 10:51, schrieb ramonchu:
> Thank you so much for all the answers.
> 
> The main problem is that I have to deal with a lot of entities,
> which have very different types and structures, and they have not a
> common interface, so I don't have a common way to deal with them (I
> cannot retreive them using id or similar approaches)
> 
> My objective was to try to show in a table all the wanted results,
> and then perform the classical view/modify/delete operations with
> any of the presented row. So I wanted to get the object from the
> selected row and pass it to another page. Therefore, I thought
> eventlink, actionlink or pagelink components could help me get the
> selected row from the grid.
> 
> 
> -- View this message in context:
> http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588p5690583.html
>
> 
Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+nqcsACgkQbmZsMyUPuXTIKwCfb1//GbW8x5nrIKb4+ywiDxlf
yikAoLHCtxvt4XF3xqd+FURnmkbfQcXa
=HuaS
-----END PGP SIGNATURE-----

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

Reply via email to