-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What about contributing a ValueEncoder that converts between a ProductId and a String? I haven't needed to work with composite primary keys, so I can't say if it'd work, but it's worth a shot.
/Filip On 2009-04-02 00:33, Thiago H. de Paula Figueiredo wrote: > Em Wed, 01 Apr 2009 18:35:53 -0300, Fernanda C. Carmo > <fernanda.ca...@gmail.com> escreveu: > >> I have an object Product and it has a composite primary key (ProductId). >> How can I put this object Product in actionlink's context value? > > Hi! > > Create a method that return a List containig the values thatt comprise > the composite primary key. ;) This works in any Tapestry version. > Use EventContext as the only parameter of onActivate or any other event > handler method. > By the way, in new code, avoid composite primary keys. It's not worth > the trouble. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEcBAEBAgAGBQJJ0+6AAAoJEEfiH7PpjaMngogH/jK+fjLs1Q01kukoVAA/V/rb A2FW5oB8T9sik+OL/gRueSF8eV0z00j/lYaZ8F/p+sbIetSy16CCn0XnPUOYagx6 JBBWplsSDgHG62NnpO5+RzYBPmF4gLh4gOYrGo+WIaZcT/ZK9ohWrcLfF9V0IQrw ciBcdxb1VToJF51qmtHnG4EcMORNkyd0gzElX1FpBVLiiJUOb4+CWRhLdEasF0nu muKNA0zuZd85C3w2K7yWt15NBR8HRg3jJ/Xa54vHAq8OQ+1hFhkJLFck9PGIYrt3 HCQHqKbJxPYOgd3JVamrTSszqjnhVriVNHKfD8H8LfUb0/dBxDaclx88KTY0Oy8= =EgqM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org