Thanks guys for the info about data-id; I will probably go for it, I think it's the cleanest too. But before doing so I need to figure out whether this issue would be solved by upgrading to Tapestry 5.4 which contains TAP5-1569 ( https://issues.apache.org/jira/browse/TAP5-1569 ), in case that turns out to be the fix for the missing id in the <table> tag. This might turn out to be the reason we needed to decide to upgrade to the latest Tapestry version.
An alternative workaround I am considering is to first retrieve the outer div that contains the table instead of retrieving the table itself, since Tapestry already gives that div an id. Then retrieve the first child of the div which is a table; but this creates a dependency on this outer div being there wrapping the table, which I imagine is not guaranteed to stay the same in future versions, so the data-id solution is probably better anyway. -----Original Message----- From: Svein-Erik Løken Sent: Monday, September 21, 2015 08:54 To: users@tapestry.apache.org Subject: RE: Make Tapestry add an id to the <table> tag of the grid I think data-id is cleaner than setting some class attributes. I use class attributes for style/css. What if tapesty used data-tapestry-id internally t:id=""? Users could then use the id="" attribute directly from javascript for elements in zones. S-E -----Original Message----- From: Geoff Callender-2 [via Apache Tapestry Mailing List Archives] Sent: 19. september 2015 05:19 To: Svein-Erik Løken <sv...@jacilla.no> Subject: Re: Make Tapestry add an id to the <table> tag of the grid Tapestry does generate some “data" attributes, eg. data-validate, data-update-zone, data-async-trigger, and data-dismiss-url; but data-id is not one of them. Svein added data-id himself, but he could have called it anything so long as its name doesn’t clash with a Tapestry-generated one. For anyone unfamiliar with “data” attributes, here’s some good info: http://webdesign.tutsplus.com/tutorials/all-you-need-to-know-about-the-html5-data-attribute--webdesign-9642 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org