Guten Tag Bas Gooren, am Samstag, 14. Mai 2016 um 11:45 schrieben Sie: > Can you show us some code (html and java) - perhaps as a github > gist or similar? It’s not 100% clear to me what you are asking.
Find my table at the bottom, it is coming from one panel and contains different Wicket components. The "id" I'm talking about is the attribute of the "th" tags, which needs to be unique across a page and the ids need to be referenced in the body by the "td" tags using the "headers" attributes. Currently the ids are generic and multiple instances of the table on a single page would violate their uniqueness. As you can see, there's no component involved in "thead", but all the cells of "tbody" are one. And I wouldn't want to span the "unique ids" logic across multiple components, instead I would like to have one place, e.g. "resultsContainer" itself, to process the markup in such a way that this parent container of all markup generates unique ids, changes the "headers" references to those ids and afterwards Wicket proceeds with markup processing fully transparent. <wicket:panel> <table class="results.details.meters ui-expandable ui-expandable-collapsed" wicket:id="resultsContainer"> <caption> <a href="#" title="Show details of all ... meters." wicket:message="title:caption.show.title"> <wicket:message key="caption.show.msg"> Details of all ... meters. </wicket:message></a> <a href="#" title="This link provides a readings file with only the ... meters." wicket:id="caption.download" wicket:message="title:caption.download.title"> <wicket:message key="caption.download.msg"> Download </wicket:message></a> </caption> <colgroup> <col /> <col /> <col /> <col /> </colgroup> <thead> <tr> <th id="results.details.realEstate"> <wicket:message key="head.realEstate"> Real estate </wicket:message> </th> <th id="results.details.prodCode" class="sorter-text"> <wicket:message key="head.prodCode"> Prod code </wicket:message> </th> <th id="results.details.readingSerial" class="sorter-text"> <wicket:message key="head.readingSerial"> Reading serial </wicket:message> </th> <th id="results.details.type" class="sorter-text"> <wicket:message key="head.type"> Type </wicket:message> </th> </tr> </thead> <tfoot wicket:id="resultsPager"> <tr> <td colspan="4" class="tableSorterPager"> <button type="button" class="first"> << </button> <button type="button" class="prev"> < </button> <span class="pageDisplay"></span> <button type="button" class="next"> > </button> <button type="button" class="last"> >> </button> <select class="pageSize" title="Select a page size..." wicket:message="title:foot.pageSize.title"> <option value="25" selected="selected"> 25 </option> <option value="50"> 50 </option> <option value="75"> 75 </option> <option value="100"> 100 </option> </select> <select class="gotoPage" title="Select a page number..." wicket:message="title:foot.pageNumber.title"> <option value="1" selected="selected"> 1 </option> </select> </td> </tr> </tfoot> <tbody> <tr class="noResults" wicket:id="noResults"> <td colspan="3"> <wicket:message key="body.noResults"> No results found! </wicket:message> </td> </tr> <tr wicket:id="resultsRow"> <td headers="results.details.realEstate" wicket:id="realEstate"> Real estate 1 </td> <td headers="results.details.prodCode" wicket:id="prodCode"> MEH </td> <td headers="results.details.readingSerial" wicket:id="readingSerial"> 12345678 </td> <td headers="results.details.type" wicket:id="type"> Heat </td> </tr> </tbody> </table> </wicket:panel> Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org