That's actually not quite what I'm looking for but I guess it'll have to do. I'm actually looking for a way to click the entire row. For instance the output HTML could be...
<table> <tr onclick="window.location.assign('itemdetail/34')"> <td>Item 34</td> <td>Blah</td> </tr> <tr onclick=" window.location.assign('itemdetail/16')"> <td>Item 16</td> <td>blah blah blah</td> </tr> </table> > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of sun58224 > Sent: Wednesday, September 26, 2007 2:17 AM > To: users@tapestry.apache.org > Subject: Re: [T5] Linkable rows with Grid component > > > > Howard Lewis Ship <hlship <at> gmail.com> writes: > > > > > You just leverage the ability to override how particular columns are > rendered: > > > > This assumes that your items have a property named label that you want > > to convert into a link. > > > > <t:grid row="item" ...> > > <t:parameter name="label"> > > <t:pagelink page="ItemDetail" context="item.id">${item.label} > </t:pagelink> > > </t:parameter> > > </t:grid> > > > > On 9/25/07, Jean-Philippe Steinmetz <steinmet <at> isi.edu> wrote: > > > I would like to make each of the rows in my grid component output link > to > > > some page. For instance have each row link to a detail page about that > row. > > > Is this possible with the grid component? If so how can I do it? > Thanks > > > > > > > > > > > > Jean-Philippe Steinmetz > > > > > > > > > > > > > > > > <t:grid row="item" ...> > <t:parameter name="labelCell"> > <t:pagelink page="ItemDetail" > context="item.id">${item.label}</t:pagelink> > </t:parameter> > </t:grid> > > > > > > --------------------------------------------------------------------- > 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]