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 From: Geoff Callender-2 [via Apache Tapestry Mailing List Archives] [mailto:ml-node+s1045711n5731255...@n5.nabble.com] 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 > On 18 Sep 2015, at 7:18 pm, Davide Vecchi <[hidden > email]</user/SendEmail.jtp?type=node&node=5731255&i=0>> wrote: > > Thanks, it sounds interesting. I will have to find out what the data-id > "does" in Tapestry in general though, and whether it's already used for > something else in this web app, because I don't want to interfer with other > functionalities. So far I couldn't find much info about data-id but I will > definitely keep this as a possible option. > > -----Original Message----- > From: Svein-Erik Løken > Sent: Friday, September 18, 2015 10:16 > To: [hidden email]</user/SendEmail.jtp?type=node&node=5731255&i=1> > Subject: RE: Make Tapestry add an id to the <table> tag of the grid > > In zone I am using data-id: > > > Eg: <t:select data-id="typeSelect" > > $("select[data-id='typeSelect']") > > I think you can do the same! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden > email]</user/SendEmail.jtp?type=node&node=5731255&i=2> > For additional commands, e-mail: [hidden > email]</user/SendEmail.jtp?type=node&node=5731255&i=3> > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email]</user/SendEmail.jtp?type=node&node=5731255&i=4> For additional commands, e-mail: [hidden email]</user/SendEmail.jtp?type=node&node=5731255&i=5> ________________________________ If you reply to this email, your message will be added to the discussion below: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Make-Tapestry-add-an-id-to-the-table-tag-of-the-grid-tp5731247p5731255.html To unsubscribe from users@tapestry.apache.org<mailto:users@tapestry.apache.org> Mailing List Archives, click here<http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2375125&code=c3ZlaW5AamFjaWxsYS5ub3wyMzc1MTI1fC0xNTM4NzY2ODg4>. NAML<http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>