tag of the grid
Posted by Svein-Erik Løken <sv...@jacilla.no>.
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+s1045711n5731255h86@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<ma...@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>
Re: Make Tapestry add an id to the
tag of the grid
Posted by Geoff Callender <ge...@gmail.com>.
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 <dv...@amc.dk> 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: users@tapestry.apache.org
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Make Tapestry add an id to the
tag of the grid
Posted by Davide Vecchi <dv...@amc.dk>.
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: users@tapestry.apache.org
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Make Tapestry add an id to the
tag of the grid
Posted by Svein-Erik Løken <sv...@jacilla.no>.
In zone I am using data-id:
Eg: <t:select data-id="typeSelect"
$("select[data-id='typeSelect']")
I think you can do the same!
From: Davide Vecchi [via Apache Tapestry Mailing List Archives] [mailto:ml-node+s1045711n5731247h38@n5.nabble.com]
Sent: 18. september 2015 09:59
To: Svein-Erik Løken <sv...@jacilla.no>
Subject: Make Tapestry add an id to the <table> tag of the grid
Hi everybody,
I have the same need described in the thread at http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/How-to-add-table-id-into-the-Grid-td2417082.html : although in my .tml I do have a t:id attribute in the <t:grid> tag, the resulting HTML does not have an id attribute in the corresponding <table> tag, so I cannot select the table through jQuery or retrieve it through JavaScript; I cannot assume that the page has only one grid so I need the <table> tag to have an id.
I am using Tapestry 5.3.7. In the above mentioned thread the guy asked how to report a bug about this issue but he got no reply. Is that fix already implemented in some newer version or is it planned to be implemented in future ? Or is there some known workaround to get the <table> tag to have an id attribute in other ways ?
________________________________
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-tp5731247.html
To unsubscribe from users@tapestry.apache.org<ma...@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>
RE: Make Tapestry add an id to the
tag of the grid
Posted by Davide Vecchi <dv...@amc.dk>.
Hi, thanks for the suggestion. It's a good option, I will have to slightly twist it because the <table> tags already have a class - namely class="t-data-grid" - but I can add multiple class names there and jQuery should be able to pick them up. Good idea.
-----Original Message-----
Sent: Friday, September 18, 2015 10:12
To: Tapestry users <us...@tapestry.apache.org>
Subject: Re: Make Tapestry add an id to the <table> tag of the grid
Hi!
You asked for a workaround...why not using a css class temporarily until this issue is properly resolved?
class="your-id-1"
You can use a placeholder to dynamically provide different id's (well, css classes) per grid.
At least a jquery selector will now be able to pick it up and I am aware of the fact using class to mimique ID's is generally wrong...
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Make Tapestry add an id to the
tag of the grid
Posted by "mailinglist@j-b-s.de" <ma...@j-b-s.de>.
Hi!
You asked for a workaround...why not using a css class temporarily until this issue is properly resolved?
class="your-id-1"
You can use a placeholder to dynamically provide different id's (well, css classes) per grid.
At least a jquery selector will now be able to pick it up and I am aware of the fact using class to mimique ID's is generally wrong...
Jens
Von meinem iPhone gesendet
> Am 18.09.2015 um 09:58 schrieb Davide Vecchi <dv...@amc.dk>:
>
> Hi everybody,
>
> I have the same need described in the thread at http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/How-to-add-table-id-into-the-Grid-td2417082.html : although in my .tml I do have a t:id attribute in the <t:grid> tag, the resulting HTML does not have an id attribute in the corresponding <table> tag, so I cannot select the table through jQuery or retrieve it through JavaScript; I cannot assume that the page has only one grid so I need the <table> tag to have an id.
>
> I am using Tapestry 5.3.7. In the above mentioned thread the guy asked how to report a bug about this issue but he got no reply. Is that fix already implemented in some newer version or is it planned to be implemented in future ? Or is there some known workaround to get the <table> tag to have an id attribute in other ways ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org